This class allows to display an OpenCASCADE CAD model in a VTK viewer.
#include <GEOM_Actor.h>

Public Types | |
| enum | EDisplayMode { eWireframe, eShading, eShadingWithEdges = eShading + 2 } | 
Public Member Functions | |
| vtkTypeMacro (GEOM_Actor, SALOME_Actor) | |
| void | SetShape (const TopoDS_Shape &theShape, double theDeflection, bool theIsVector=false) | 
| void | SetDeflection (double theDeflection) | 
| double | GetDeflection () const | 
| void | AddToRender (vtkRenderer *theRenderer) | 
| void | RemoveFromRender (vtkRenderer *theRenderer) | 
| void | SetSelected (bool theIsSelected) | 
| bool | IsSelected () const | 
| void | SetHighlightProperty (vtkProperty *Prop) | 
| void | SetWireframeProperty (vtkProperty *Prop) | 
| void | SetShadingProperty (vtkProperty *Prop) | 
| vtkProperty * | GetWireframeProperty () | 
| vtkProperty * | GetShadingProperty () | 
| vtkProperty * | GetIsolatedEdgeProperty () | 
| vtkProperty * | GetVertexProperty () | 
| vtkProperty * | GetStandaloneVertexProperty () | 
| vtkProperty * | GetSharedEdgeProperty () | 
| vtkProperty * | GetFaceEdgeProperty () | 
| virtual void | setDisplayMode (int thenewmode) | 
| virtual void | Render (vtkRenderer *, vtkMapper *) | 
| void | ReleaseGraphicsResources (vtkWindow *) | 
| const TopoDS_Shape & | getTopo () | 
| void | setInputShape (const TopoDS_Shape &ashape, double adef1, int imode, bool isVector=false) | 
| double | isVector () | 
| void | SubShapeOn () | 
| void | SubShapeOff () | 
| virtual void | highlight (bool theHighlight) | 
| virtual bool | hasHighlight () | 
| void | ShallowCopy (vtkProp *prop) | 
| void | SetOpacity (double opa) | 
| double | GetOpacity () | 
| void | SetColor (double r, double g, double b) | 
| void | GetColor (double &r, double &g, double &b) | 
| void | SetPointColor (double r, double g, double b) | 
| Set color of points Points actor is shown in Wireframe mode only, see SetVisibility()  More... | |
| void | SetIsolatedEdgeColor (double r, double g, double b) | 
| Set color of standalone edges, wires, vectors This actor is shown in all display mode, see SetVisibility() TODO: check - this color seems to be used not only for standalone edges.  More... | |
| void | SetSharedEdgeColor (double r, double g, double b) | 
| Set color of shared edges This actor is shown only in wireframe and shading+edges display modes, see SetVisibility() TODO: check - this seems to be not working currently.  More... | |
| void | SetFreeEdgeColor (double r, double g, double b) | 
| Set color of edges for standalone faces This actor is shown only in wireframe and shading+edges display modes, see SetVisibility() TODO: this color should be used not only for faces.  More... | |
| void | SetEdgesInShadingColor (double r, double g, double b) | 
| void | SetIsosColor (double r, double g, double b) | 
| Set color of iso-lines This actor is shown only in wireframe display mode, see SetVisibility()  More... | |
| void | SetLabelColor (double r, double g, double b) | 
| Set color of labels This actor is shown only if 'Show name' is switched-on, see SetVisibility()  More... | |
| void | SetMaterial (std::vector< vtkProperty * > theProps) | 
| vtkProperty * | GetFrontMaterial () | 
| vtkProperty * | GetBackMaterial () | 
| virtual bool | IsInfinitive () | 
| virtual void | Highlight (bool theHighlight) | 
| To map current selection to VTK representation.  More... | |
| virtual bool | PreHighlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight) | 
| To process prehighlight (called from #SVTK_InteractorStyle)  More... | |
| virtual bool | Highlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight) | 
| To process highlight (called from #SVTK_InteractorStyle)  More... | |
| virtual void | SetVisibility (int) | 
| Visibility management.  More... | |
| virtual void | SetNbIsos (const int theNb[2]) | 
| IsoLines management.  More... | |
| virtual void | GetNbIsos (int &theNbU, int &theNbV) | 
| virtual void | SetIsosWidth (const int width) | 
| int | GetIsosWidth () const | 
| virtual void | SetWidth (const int width) | 
| int | GetWidth () const | 
| virtual void | SetVectorMode (const bool theMode) | 
| Vector mode management.  More... | |
| virtual bool | GetVectorMode () | 
| virtual void | SetVerticesMode (const bool theMode) | 
| Vertices mode management.  More... | |
| virtual bool | GetVerticesMode () | 
| virtual void | SetNameMode (const bool theMode) | 
| Name mode management.  More... | |
| virtual bool | GetNameMode () | 
Static Public Member Functions | |
| static GEOM_Actor * | New () | 
Protected Member Functions | |
| void | SetModified () | 
| void | GetMatrix (vtkCamera *theCam, vtkMatrix4x4 *result) | 
| void | SetShapeName () | 
| GEOM_Actor () | |
| ~GEOM_Actor () | |
Private Member Functions | |
| virtual void | SetMapper (vtkMapper *) | 
| GEOM_Actor (const GEOM_Actor &) | |
| void | operator= (const GEOM_Actor &) | 
      
  | 
  protected | 
References myAppendFilter, myHighlightActor, myHighlightProp, myIsolatedEdgeActor, myIsolatedEdgeColor, myIsolatedEdgeSource, myOneFaceEdgeActor, myOneFaceEdgeColor, myOneFaceEdgeSource, myPolyDataMapper, myPreHighlightProp, myShadingFaceActor, myShadingFaceProp, myShadingFaceSource, mySharedEdgeActor, mySharedEdgeColor, mySharedEdgeSource, myStandaloneVertexActor, myStandaloneVertexSource, myVertexActor, myVertexSource, myWireframeFaceActor, myWireframeFaceSource, setDisplayMode(), SetNameMode(), SetVectorMode(), and SetVerticesMode().
      
  | 
  protected | 
References myHighlightProp, myPreHighlightProp, myShadingBackFaceProp, myShadingFaceProp, and myTextActor.
      
  | 
  private | 
| void GEOM_Actor::AddToRender | ( | vtkRenderer * | theRenderer | ) | 
| vtkProperty * GEOM_Actor::GetBackMaterial | ( | ) | 
References myShadingBackFaceProp.
| void GEOM_Actor::GetColor | ( | double & | r, | 
| double & | g, | ||
| double & | b | ||
| ) | 
References myShadingFaceProp.
      
  | 
  inline | 
| vtkProperty * GEOM_Actor::GetFaceEdgeProperty | ( | ) | 
References myOneFaceEdgeActor.
| vtkProperty * GEOM_Actor::GetFrontMaterial | ( | ) | 
References myShadingFaceProp.
| vtkProperty * GEOM_Actor::GetIsolatedEdgeProperty | ( | ) | 
References myIsolatedEdgeActor.
| int GEOM_Actor::GetIsosWidth | ( | ) | const | 
References myWireframeFaceActor.
      
  | 
  protected | 
      
  | 
  virtual | 
      
  | 
  virtual | 
| double GEOM_Actor::GetOpacity | ( | ) | 
References myShadingFaceProp.
| vtkProperty * GEOM_Actor::GetShadingProperty | ( | ) | 
References myShadingFaceProp.
| vtkProperty * GEOM_Actor::GetSharedEdgeProperty | ( | ) | 
References mySharedEdgeActor.
| vtkProperty * GEOM_Actor::GetStandaloneVertexProperty | ( | ) | 
References myStandaloneVertexActor.
| const TopoDS_Shape & GEOM_Actor::getTopo | ( | ) | 
References myShape.
      
  | 
  virtual | 
| vtkProperty * GEOM_Actor::GetVertexProperty | ( | ) | 
References myVertexActor.
      
  | 
  virtual | 
| int GEOM_Actor::GetWidth | ( | ) | const | 
References myIsolatedEdgeActor.
| vtkProperty * GEOM_Actor::GetWireframeProperty | ( | ) | 
References myWireframeFaceActor.
      
  | 
  inlinevirtual | 
      
  | 
  virtual | 
      
  | 
  virtual | 
To map current selection to VTK representation
      
  | 
  virtual | 
To process highlight (called from SVTK_InteractorStyle)
      
  | 
  virtual | 
References isOnlyVertex, and myShape.
      
  | 
  inline | 
| double GEOM_Actor::isVector | ( | ) | 
      
  | 
  static | 
References GEOM_Actor(), GEOM_SmartPtr< T >::Get(), myPolyDataMapper, and SetMapper().
      
  | 
  private | 
      
  | 
  virtual | 
To process prehighlight (called from SVTK_InteractorStyle)
| void GEOM_Actor::ReleaseGraphicsResources | ( | vtkWindow * | ) | 
| void GEOM_Actor::RemoveFromRender | ( | vtkRenderer * | theRenderer | ) | 
      
  | 
  virtual | 
| void GEOM_Actor::SetColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
| void GEOM_Actor::SetDeflection | ( | double | theDeflection | ) | 
References GEOMUtils::DefaultDeflection(), GEOMUtils::MeshShape(), myDeflection, myShape, and SetModified().
      
  | 
  virtual | 
| void GEOM_Actor::SetEdgesInShadingColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References myEdgesInShadingColor.
| void GEOM_Actor::SetFreeEdgeColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References eShadingWithEdges, myOneFaceEdgeActor, and myOneFaceEdgeColor.
| void GEOM_Actor::SetHighlightProperty | ( | vtkProperty * | Prop | ) | 
References myHighlightActor.
| void GEOM_Actor::setInputShape | ( | const TopoDS_Shape & | ashape, | 
| double | adef1, | ||
| int | imode, | ||
| bool | isVector = false  | 
        ||
| ) | 
| void GEOM_Actor::SetIsolatedEdgeColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References myIsolatedEdgeActor, and myIsolatedEdgeColor.
| void GEOM_Actor::SetIsosColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References myWireframeFaceActor.
      
  | 
  virtual | 
References myWireframeFaceActor.
| void GEOM_Actor::SetLabelColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References myTextActor.
      
  | 
  privatevirtual | 
| void GEOM_Actor::SetMaterial | ( | std::vector< vtkProperty * > | theProps | ) | 
References aColor, myShadingBackFaceProp, myShadingFaceActor, myShadingFaceProp, myStandaloneVertexActor, and myVertexActor.
      
  | 
  protected | 
      
  | 
  virtual | 
      
  | 
  virtual | 
| void GEOM_Actor::SetOpacity | ( | double | opa | ) | 
| void GEOM_Actor::SetPointColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References myStandaloneVertexActor, and myVertexActor.
| void GEOM_Actor::SetSelected | ( | bool | theIsSelected | ) | 
References myIsSelected, and SetVisibility().
| void GEOM_Actor::SetShadingProperty | ( | vtkProperty * | Prop | ) | 
References myShadingFaceProp.
| void GEOM_Actor::SetShape | ( | const TopoDS_Shape & | theShape, | 
| double | theDeflection, | ||
| bool | theIsVector = false  | 
        ||
| ) | 
References GEOM_SmartPtr< T >::Get(), isOnlyVertex, myAppendFilter, myHighlightActor, myIsolatedEdgeSource, myOneFaceEdgeSource, myShadingFaceSource, myShape, mySharedEdgeSource, myStandaloneVertexActor, myStandaloneVertexSource, myVertexActor, myVertexSource, myWireframeFaceSource, SetDeflection(), SetShapeName(), and GEOM::ShapeToVTK().
      
  | 
  protected | 
References getName(), and GEOMUtils::GetPosition().
| void GEOM_Actor::SetSharedEdgeColor | ( | double | r, | 
| double | g, | ||
| double | b | ||
| ) | 
References eShadingWithEdges, mySharedEdgeActor, and mySharedEdgeColor.
      
  | 
  virtual | 
      
  | 
  virtual | 
      
  | 
  virtual | 
      
  | 
  virtual | 
References myHighlightProp, myIsolatedEdgeActor, myOneFaceEdgeActor, myPreHighlightProp, and mySharedEdgeActor.
| void GEOM_Actor::SetWireframeProperty | ( | vtkProperty * | Prop | ) | 
References myWireframeFaceActor.
| void GEOM_Actor::ShallowCopy | ( | vtkProp * | prop | ) | 
References GetDeflection(), getTopo(), NULL, and SetShape().
| void GEOM_Actor::SubShapeOff | ( | ) | 
| void GEOM_Actor::SubShapeOn | ( | ) | 
| GEOM_Actor::vtkTypeMacro | ( | GEOM_Actor | , | 
| SALOME_Actor | |||
| ) | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |