Version: 6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

GEOM_Actor Class Reference

This class allows to display an OpenCASCADE CAD model in a VTK viewer.

#include <GEOM_Actor.h>

Inheritance diagram for GEOM_Actor:
Inheritance graph

Public Types

enum  EDisplayMode { eWireframe, eShading }

Public Member Functions

 vtkTypeMacro (GEOM_Actor, SALOME_Actor)
void SetShape (const TopoDS_Shape &theShape, float theDeflection, bool theIsVector=false)
void SetDeflection (float theDeflection)
float 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)
void setDeflection (double adef)
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 getDeflection ()
double isVector ()
void SubShapeOn ()
void SubShapeOff ()
virtual void highlight (bool theHighlight)
virtual bool hasHighlight ()
void ShallowCopy (vtkProp *prop)
void SetOpacity (vtkFloatingPointType opa)
vtkFloatingPointType GetOpacity ()
void SetColor (vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointType b)
void GetColor (vtkFloatingPointType &r, vtkFloatingPointType &g, vtkFloatingPointType &b)
virtual bool IsInfinitive ()
virtual void Highlight (bool theHighlight)
 To map current selection to VTK representation.
virtual bool PreHighlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight)
 To process prehighlight (called from #SVTK_InteractorStyle)
virtual bool Highlight (vtkInteractorStyle *theInteractorStyle, SVTK_SelectionEvent *theSelectionEvent, bool theIsHighlight)
 To process highlight (called from #SVTK_InteractorStyle)
virtual void SetVisibility (int)
 Visibility management.
virtual void SetNbIsos (const int theNb[2])
 IsoLines management.
virtual void GetNbIsos (int &theNbU, int &theNbV)
virtual void SetVectorMode (const bool theMode)
 Vector mode management.
virtual bool GetVectorMode ()

Static Public Member Functions

static GEOM_ActorNew ()

Protected Member Functions

void SetModified ()
void GetMatrix (vtkCamera *theCam, vtkMatrix4x4 *result)
 GEOM_Actor ()
 ~GEOM_Actor ()

Private Member Functions

virtual void SetMapper (vtkMapper *)
 GEOM_Actor (const GEOM_Actor &)
void operator= (const GEOM_Actor &)

Private Attributes

TopoDS_Shape myShape
int myNbIsos [2]
bool isOnlyVertex
float myDeflection
bool myIsForced
bool myIsSelected
bool myVectorMode
PDeviceActor myVertexActor
PVertexSource myVertexSource
PDeviceActor myIsolatedEdgeActor
PEdgeSource myIsolatedEdgeSource
PDeviceActor myOneFaceEdgeActor
PEdgeSource myOneFaceEdgeSource
PDeviceActor mySharedEdgeActor
PEdgeSource mySharedEdgeSource
PDeviceActor myWireframeFaceActor
PWFaceSource myWireframeFaceSource
PDeviceActor myShadingFaceActor
PSFaceSource myShadingFaceSource
PDeviceActor myHighlightActor
vtkSmartPointer< vtkProperty > myHighlightProp
vtkSmartPointer< vtkProperty > myPreHighlightProp
vtkSmartPointer< vtkProperty > myShadingFaceProp
PAppendFilter myAppendFilter
PPolyDataMapper myPolyDataMapper

Member Enumeration Documentation

Enumerator:
eWireframe 
eShading 

Constructor & Destructor Documentation

GEOM_Actor::GEOM_Actor ( ) [protected]
GEOM_Actor::~GEOM_Actor ( ) [protected]
GEOM_Actor.GEOM_Actor ( const GEOM_Actor ) [private]

Member Function Documentation

GEOM_Actor.vtkTypeMacro ( GEOM_Actor  ,
SALOME_Actor   
)
GEOM_Actor * GEOM_Actor::New ( ) [static]
void GEOM_Actor::SetShape ( const TopoDS_Shape &  theShape,
float  theDeflection,
bool  theIsVector = false 
)
void GEOM_Actor::SetDeflection ( float  theDeflection)
float GEOM_Actor.GetDeflection ( ) const
void GEOM_Actor::AddToRender ( vtkRenderer *  theRenderer)
void GEOM_Actor::RemoveFromRender ( vtkRenderer *  theRenderer)
void GEOM_Actor::SetSelected ( bool  theIsSelected)

References myIsSelected, and SetVisibility().

bool GEOM_Actor.IsSelected ( ) const
void GEOM_Actor::SetHighlightProperty ( vtkProperty *  Prop)

References myHighlightActor.

void GEOM_Actor::SetWireframeProperty ( vtkProperty *  Prop)

References myWireframeFaceActor.

void GEOM_Actor::SetShadingProperty ( vtkProperty *  Prop)

References myShadingFaceProp.

void GEOM_Actor::setDeflection ( double  adef)

References SetDeflection().

void GEOM_Actor::setDisplayMode ( int  thenewmode) [virtual]

References SetVisibility().

void GEOM_Actor::Render ( vtkRenderer *  ren,
vtkMapper *  theMapper 
) [virtual]
void GEOM_Actor::ReleaseGraphicsResources ( vtkWindow *  )
const TopoDS_Shape & GEOM_Actor::getTopo ( )

References myShape.

void GEOM_Actor::setInputShape ( const TopoDS_Shape &  ashape,
double  adef1,
int  imode,
bool  isVector = false 
)
double GEOM_Actor::getDeflection ( )

References GetDeflection().

double GEOM_Actor::isVector ( )
void GEOM_Actor::SubShapeOn ( )
void GEOM_Actor::SubShapeOff ( )
void GEOM_Actor::highlight ( bool  theHighlight) [virtual]
virtual bool GEOM_Actor.hasHighlight ( ) [virtual]
void GEOM_Actor::ShallowCopy ( vtkProp *  prop)
void GEOM_Actor::SetOpacity ( vtkFloatingPointType  opa)
vtkFloatingPointType GEOM_Actor::GetOpacity ( )

References myShadingFaceProp.

void GEOM_Actor::SetColor ( vtkFloatingPointType  r,
vtkFloatingPointType  g,
vtkFloatingPointType  b 
)
void GEOM_Actor::GetColor ( vtkFloatingPointType &  r,
vtkFloatingPointType &  g,
vtkFloatingPointType &  b 
)

References myShadingFaceProp.

bool GEOM_Actor::IsInfinitive ( ) [virtual]

References isOnlyVertex, and myShape.

void GEOM_Actor::Highlight ( bool  theIsHighlight) [virtual]

To map current selection to VTK representation

bool GEOM_Actor::PreHighlight ( vtkInteractorStyle *  theInteractorStyle,
SVTK_SelectionEvent *  theSelectionEvent,
bool  theIsHighlight 
) [virtual]

To process prehighlight (called from SVTK_InteractorStyle)

bool GEOM_Actor::Highlight ( vtkInteractorStyle *  theInteractorStyle,
SVTK_SelectionEvent *  theSelectionEvent,
bool  theIsHighlight 
) [virtual]

To process highlight (called from SVTK_InteractorStyle)

void GEOM_Actor::SetVisibility ( int  theVisibility) [virtual]
void GEOM_Actor::SetNbIsos ( const int  theNb[2]) [virtual]
void GEOM_Actor::GetNbIsos ( int &  theNbU,
int &  theNbV 
) [virtual]
void GEOM_Actor::SetVectorMode ( const bool  theMode) [virtual]
bool GEOM_Actor::GetVectorMode ( ) [virtual]
void GEOM_Actor::SetModified ( ) [protected]
void GEOM_Actor::GetMatrix ( vtkCamera *  theCam,
vtkMatrix4x4 *  result 
) [protected]
void GEOM_Actor::SetMapper ( vtkMapper *  theMapper) [private, virtual]
void GEOM_Actor.operator= ( const GEOM_Actor ) [private]

Field Documentation

TopoDS_Shape GEOM_Actor.myShape [private]
int GEOM_Actor.myNbIsos[2] [private]
bool GEOM_Actor.isOnlyVertex [private]
float GEOM_Actor.myDeflection [private]
bool GEOM_Actor.myIsForced [private]
bool GEOM_Actor.myIsSelected [private]
bool GEOM_Actor.myVectorMode [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS