InspectionGui::ViewProviderInspection Class Reference

#include <ViewProviderInspection.h>

Inheritance diagram for InspectionGui::ViewProviderInspection:
Gui::ViewProviderDocumentObject Base::Observer< int > Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Public Member Functions

void attach (App::DocumentObject *pcFeat)
std::vector< std::string > getDisplayModes (void) const
 Returns a list of all possible modes.
SoSeparator * getFrontRoot (void) const
 Returns a color bar.
QIcon getIcon () const
 deliver the icon shown in the tree view
virtual Base::Type getTypeId (void) const
virtual void hide (void)
 Hide the object in the view.
void OnChange (Base::Subject< int > &rCaller, int rcReason)
 Once the color bar settings has been changed this method gets called to update the feature's representation.
void setDisplayMode (const char *ModeName)
 Sets the viewing mode.
virtual void show (void)
 Show the object in the view.
void updateData (const App::Property *)
 Update colorbar after recomputation of distances.
 ViewProviderInspection ()
virtual ~ViewProviderInspection ()

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)
static void inspectCallback (void *ud, SoEventCallback *n)

Public Attributes

App::PropertyBool OutsideGrayed
App::PropertyFloatConstraint PointSize

Protected Member Functions

virtual const App::PropertyDatagetPropertyData (void) const
QString inspectDistance (const SoPickedPoint *pp) const
void onChanged (const App::Property *prop)
 Gets called by the container whenever a property has been changed.
void setDistances ()

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Protected Attributes

Gui::SoFCColorBarpcColorBar
SoMaterial * pcColorMat
SoSeparator * pcColorRoot
SoDrawStyle * pcColorStyle
SoCoordinate3 * pcCoords
SoGroup * pcLinkRoot
SoMaterialBinding * pcMatBinding
SoDrawStyle * pcPointStyle

Detailed Description

Author:
Werner Mayer

Definition at line 48 of file ViewProviderInspection.h.


Constructor & Destructor Documentation

ViewProviderInspection::ViewProviderInspection (  ) 
ViewProviderInspection::~ViewProviderInspection (  )  [virtual]

Member Function Documentation

void ViewProviderInspection::attach ( App::DocumentObject pcFeat  )  [virtual]
void * InspectionGui::ViewProviderInspection::create ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 68 of file ViewProviderInspection.cpp.

Base::Type InspectionGui::ViewProviderInspection::getClassTypeId ( void   )  [static]
std::vector< std::string > ViewProviderInspection::getDisplayModes ( void   )  const [virtual]

Returns a list of all possible modes.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 352 of file ViewProviderInspection.cpp.

SoSeparator * ViewProviderInspection::getFrontRoot ( void   )  const [virtual]

Returns a color bar.

Reimplemented from Gui::ViewProvider.

Definition at line 277 of file ViewProviderInspection.cpp.

References pcColorRoot.

QIcon ViewProviderInspection::getIcon ( void   )  const [virtual]
const App::PropertyData & InspectionGui::ViewProviderInspection::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 68 of file ViewProviderInspection.cpp.

const App::PropertyData * InspectionGui::ViewProviderInspection::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 68 of file ViewProviderInspection.cpp.

Base::Type InspectionGui::ViewProviderInspection::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 68 of file ViewProviderInspection.cpp.

void ViewProviderInspection::hide ( void   )  [virtual]

Hide the object in the view.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 128 of file ViewProviderInspection.cpp.

References pcColorStyle.

void InspectionGui::ViewProviderInspection::init ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 68 of file ViewProviderInspection.cpp.

Referenced by initInspectionGui().

void ViewProviderInspection::inspectCallback ( void *  ud,
SoEventCallback *  n 
) [static]
QString ViewProviderInspection::inspectDistance ( const SoPickedPoint *  pp  )  const [protected]
void ViewProviderInspection::OnChange ( Base::Subject< int > &  rCaller,
int  rcReason 
) [virtual]

Once the color bar settings has been changed this method gets called to update the feature's representation.

Implements Base::Observer< int >.

Definition at line 360 of file ViewProviderInspection.cpp.

References Gui::ViewProviderDocumentObject::setActiveMode().

void ViewProviderInspection::onChanged ( const App::Property prop  )  [protected, virtual]
void ViewProviderInspection::setDisplayMode ( const char *  ModeName  )  [virtual]

Sets the viewing mode.

Reimplemented from Gui::ViewProvider.

Definition at line 342 of file ViewProviderInspection.cpp.

References Gui::ViewProvider::setDisplayMaskMode(), and setDistances().

void ViewProviderInspection::setDistances (  )  [protected]
void ViewProviderInspection::show ( void   )  [virtual]

Show the object in the view.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 134 of file ViewProviderInspection.cpp.

References pcColorStyle.

void ViewProviderInspection::updateData ( const App::Property prop  )  [virtual]

Member Data Documentation

Definition at line 58 of file ViewProviderInspection.h.

Referenced by onChanged().

Definition at line 86 of file ViewProviderInspection.h.

Referenced by attach(), setDistances(), and ~ViewProviderInspection().

Definition at line 92 of file ViewProviderInspection.h.

Referenced by attach(), getFrontRoot(), and ~ViewProviderInspection().

Definition at line 90 of file ViewProviderInspection.h.

Referenced by hide(), and show().

Definition at line 88 of file ViewProviderInspection.h.

Referenced by attach(), updateData(), and ~ViewProviderInspection().

Definition at line 87 of file ViewProviderInspection.h.

Referenced by attach(), setDistances(), and ~ViewProviderInspection().

Definition at line 91 of file ViewProviderInspection.h.

Referenced by onChanged(), updateData(), and ~ViewProviderInspection().

Definition at line 59 of file ViewProviderInspection.h.

Referenced by onChanged().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:15 2011 for FreeCAD by  doxygen 1.6.1