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

SVTK_DeviceActor Class Reference

#include <SVTK_DeviceActor.h>

Inheritance diagram for SVTK_DeviceActor:
Inheritance graph

Public Member Functions

 vtkTypeMacro (SVTK_DeviceActor, vtkLODActor)
virtual void SetTransform (VTKViewer_Transform *theTransform)
 Apply a view transformation.
virtual void SetMapper (vtkMapper *theMapper)
 To insert some additional filters and then sets the given #vtkMapper.
virtual vtkDataSet * GetInput ()
 Allows to get initial #vtkDataSet.
virtual void SetInput (vtkDataSet *theDataSet)
 Allows to set initial #vtkDataSet.
virtual unsigned long int GetMTime ()
virtual void Render (vtkRenderer *, vtkMapper *)
VTKViewer_DataSetMapperGetDataSetMapper ()
virtual void SetQuadraticArcMode (bool theFlag)
 Setting for displaying quadratic elements.
virtual bool GetQuadraticArcMode ()
virtual void SetQuadraticArcAngle (vtkFloatingPointType theMaxAngle)
virtual vtkFloatingPointType GetQuadraticArcAngle ()
For selection mapping purpose
virtual int GetNodeObjId (int theVtkID)
virtual vtkFloatingPointTypeGetNodeCoord (int theObjID)
virtual int GetElemObjId (int theVtkID)
virtual vtkCell * GetElemCell (int theObjID)
virtual void SetStoreMapping (bool theStoreMapping)
 To provide VTK to Object and backward mapping.
For shrink mamnagement purpose
vtkFloatingPointType GetShrinkFactor ()
virtual void SetShrinkFactor (vtkFloatingPointType value)
virtual void SetShrinkable (bool theIsShrinkable)
bool IsShrunkable ()
bool IsShrunk ()
virtual void SetShrink ()
virtual void UnShrink ()
For feature edges management purpose
virtual bool IsFeatureEdgesAllowed ()
virtual void SetFeatureEdgesAllowed (bool theIsFeatureEdgesAllowed)
virtual bool IsFeatureEdgesEnabled ()
virtual void SetFeatureEdgesEnabled (bool theIsFeatureEdgesEnabled)
virtual vtkFloatingPointType GetFeatureEdgesAngle ()
virtual void SetFeatureEdgesAngle (vtkFloatingPointType theAngle)
virtual void GetFeatureEdgesFlags (bool &theIsFeatureEdges, bool &theIsBoundaryEdges, bool &theIsManifoldEdges, bool &theIsNonManifoldEdges)
virtual void SetFeatureEdgesFlags (bool theIsFeatureEdges, bool theIsBoundaryEdges, bool theIsManifoldEdges, bool theIsNonManifoldEdges)
virtual bool GetFeatureEdgesColoring ()
virtual void SetFeatureEdgesColoring (bool theIsColoring)
For representation mamnagement purpose
virtual void SetRepresentation (SVTK::Representation::Type theMode)
SVTK::Representation::Type GetRepresentation ()
virtual vtkFloatingPointType GetDefaultPointSize ()
virtual vtkFloatingPointType GetDefaultLineWidth ()
bool IsShaded ()
void SetShaded (bool theShaded)
For marker management purpose
void SetMarkerEnabled (bool)
void SetMarkerStd (VTK::MarkerType, VTK::MarkerScale)
void SetMarkerTexture (int, VTK::MarkerTexture)
VTK::MarkerType GetMarkerType ()
VTK::MarkerScale GetMarkerScale ()
int GetMarkerTexture ()

Static Public Member Functions

static SVTK_DeviceActorNew ()

Protected Member Functions

void InitPipeLine (vtkMapper *theMapper)
 To initialize internal pipeline.
void SetPolygonOffsetParameters (vtkFloatingPointType factor, vtkFloatingPointType units)
void GetPolygonOffsetParameters (vtkFloatingPointType &factor, vtkFloatingPointType &units)
 SVTK_DeviceActor ()
 ~SVTK_DeviceActor ()

Protected Attributes

SVTK::Representation::Type myRepresentation
vtkProperty * myProperty
bool myIsShaded
VTKViewer_GeometryFiltermyGeomFilter
VTKViewer_TransformFiltermyTransformFilter
std::vector
< vtkPassThroughFilter * > 
myPassFilter
vtkShrinkFiltermyShrinkFilter
vtkFeatureEdges * myFeatureEdges
VTKViewer_DataSetMappermyMapper
bool myIsShrinkable
bool myIsShrunk
bool myIsFeatureEdgesAllowed
bool myIsFeatureEdgesEnabled
bool myIsResolveCoincidentTopology
vtkFloatingPointType myPolygonOffsetFactor
vtkFloatingPointType myPolygonOffsetUnits

Private Member Functions

 SVTK_DeviceActor (const SVTK_DeviceActor &)
void operator= (const SVTK_DeviceActor &)

Constructor & Destructor Documentation

SVTK_DeviceActor::SVTK_DeviceActor ( ) [protected]
SVTK_DeviceActor::~SVTK_DeviceActor ( ) [protected]

Destructor

SVTK_DeviceActor.SVTK_DeviceActor ( const SVTK_DeviceActor ) [private]

Member Function Documentation

SVTK_DeviceActor.vtkTypeMacro ( SVTK_DeviceActor  ,
vtkLODActor   
)
static SVTK_DeviceActor* SVTK_DeviceActor.New ( ) [static]

Reimplemented in SVTK_Actor.

void SVTK_DeviceActor::SetTransform ( VTKViewer_Transform theTransform) [virtual]

Apply a view transformation

Parameters:
theTransform- transformation
void SVTK_DeviceActor::SetMapper ( vtkMapper *  theMapper) [virtual]

To insert some additional filters and then sets the given vtkMapper

vtkDataSet * SVTK_DeviceActor::GetInput ( ) [virtual]

Allows to get initial vtkDataSet

void SVTK_DeviceActor::SetInput ( vtkDataSet *  theDataSet) [virtual]

Allows to set initial vtkDataSet

int SVTK_DeviceActor::GetNodeObjId ( int  theVtkID) [virtual]

Maps VTK index of a node to corresponding object index

vtkFloatingPointType * SVTK_DeviceActor::GetNodeCoord ( int  theObjID) [virtual]

Get coordinates of a node for given object index

int SVTK_DeviceActor::GetElemObjId ( int  theVtkID) [virtual]

Maps VTK index of a cell to corresponding object index

vtkCell * SVTK_DeviceActor::GetElemCell ( int  theObjID) [virtual]

Get corresponding #vtkCell for given object index

void SVTK_DeviceActor::SetStoreMapping ( bool  theStoreMapping) [virtual]

To provide VTK to Object and backward mapping

unsigned long int SVTK_DeviceActor::GetMTime ( ) [virtual]
Returns:
time of modification
vtkFloatingPointType SVTK_DeviceActor::GetShrinkFactor ( )
Returns:
shrink factor
void SVTK_DeviceActor::SetShrinkFactor ( vtkFloatingPointType  theValue) [virtual]

Changes shrink factor

Parameters:
theValue- new shrink factor
void SVTK_DeviceActor::SetShrinkable ( bool  theIsShrinkable) [virtual]

Changes shrinkable state of actor theIsShrinkable - new shrinkable state

bool SVTK_DeviceActor::IsShrunkable ( )
Returns:
true if actor is shrinkable
bool SVTK_DeviceActor::IsShrunk ( )
Returns:
true if actor is shrunkable
void SVTK_DeviceActor::SetShrink ( ) [virtual]

Insert shrink filter into pipeline

void SVTK_DeviceActor::UnShrink ( ) [virtual]

Remove shrink filter from pipeline

bool SVTK_DeviceActor::IsFeatureEdgesAllowed ( ) [virtual]
Returns:
true if feature edges are allowed for this actor
void SVTK_DeviceActor::SetFeatureEdgesAllowed ( bool  theIsFeatureEdgesAllowed) [virtual]

Allows feature edges for this actor on or off

Parameters:
theIsFeatureEdgesAllowed- flag which allows feature edges for this actor on or off
bool SVTK_DeviceActor::IsFeatureEdgesEnabled ( ) [virtual]
Returns:
true if feature edges are enabled
void SVTK_DeviceActor::SetFeatureEdgesEnabled ( bool  theIsFeatureEdgesEnabled) [virtual]

Enables feature edges on or off

Parameters:
theIsFeatureEdgesEnabled- flag which enables feature edges on or off
vtkFloatingPointType SVTK_DeviceActor::GetFeatureEdgesAngle ( ) [virtual]
Returns:
angle of feature edges' filter
void SVTK_DeviceActor::SetFeatureEdgesAngle ( vtkFloatingPointType  theAngle) [virtual]

Sets angle of feature edges' filter

Parameters:
theAngleangle of feature edges' filter
void SVTK_DeviceActor::GetFeatureEdgesFlags ( bool &  theIsFeatureEdges,
bool &  theIsBoundaryEdges,
bool &  theIsManifoldEdges,
bool &  theIsNonManifoldEdges 
) [virtual]

Gets information about kinds of edges which are displayed by feature edges' filter

Parameters:
theIsFeatureEdgesflag which shows whether feature edges are displayed
theIsBoundaryEdgesflag which shows whether boundary edges are displayed
theIsManifoldEdgesflag which shows whether manifold edges are displayed
theIsNonManifoldEdgesflag which shows whether non-manifold edges are displayed
void SVTK_DeviceActor::SetFeatureEdgesFlags ( bool  theIsFeatureEdges,
bool  theIsBoundaryEdges,
bool  theIsManifoldEdges,
bool  theIsNonManifoldEdges 
) [virtual]

Sets different kinds of edges to be displayed by feature edges' filter

Parameters:
theIsFeatureEdgesflag which displays feature edges
theIsBoundaryEdgesflag which displays boundary edges
theIsManifoldEdgesflag which displays manifold edges
theIsNonManifoldEdgesflag which displays non-manifold edges
bool SVTK_DeviceActor::GetFeatureEdgesColoring ( ) [virtual]
Returns:
feature edges' coloring flag
void SVTK_DeviceActor::SetFeatureEdgesColoring ( bool  theIsColoring) [virtual]

Sets feature edges' coloring flag

Parameters:
theIsColoringfeature edges' coloring flag
void SVTK_DeviceActor::SetRepresentation ( SVTK::Representation::Type  theMode) [virtual]

Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on) param theMode - new mode

References SVTK.Representation.Insideframe, SVTK.Representation.Points, SVTK.Representation.Surface, and SVTK.Representation.Wireframe.

SVTK::Representation::Type SVTK_DeviceActor::GetRepresentation ( )
Returns:
current representation mode
vtkFloatingPointType SVTK_DeviceActor::GetDefaultPointSize ( ) [virtual]
Returns:
default point size
vtkFloatingPointType SVTK_DeviceActor::GetDefaultLineWidth ( ) [virtual]
Returns:
default line width
bool SVTK_DeviceActor::IsShaded ( )
Returns:
true if actor is shaded
void SVTK_DeviceActor::SetShaded ( bool  theShaded)

Sets shaded state of actor

Parameters:
theShaded- new shaded state
void SVTK_DeviceActor::SetMarkerEnabled ( bool  theMarkerEnabled)

Set point marker enabled

Parameters:
theMarkerEnabledflag to enable/disable point marker
void SVTK_DeviceActor::SetMarkerStd ( VTK::MarkerType  theMarkerType,
VTK::MarkerScale  theMarkerScale 
)

Set standard point marker

Parameters:
theMarkerTypetype of the marker
theMarkerScalescale of the marker
void SVTK_DeviceActor::SetMarkerTexture ( int  theMarkerId,
VTK::MarkerTexture  theMarkerTexture 
)

Set custom point marker

Parameters:
theMarkerIdid of the marker texture
theMarkerTexturemarker texture
VTK::MarkerType SVTK_DeviceActor::GetMarkerType ( )

Get type of the point marker

Returns:
type of the point marker
VTK::MarkerScale SVTK_DeviceActor::GetMarkerScale ( )

Get scale of the point marker

Returns:
scale of the point marker
int SVTK_DeviceActor::GetMarkerTexture ( )

Get texture identifier of the point marker

Returns:
texture identifier of the point marker
void SVTK_DeviceActor::Render ( vtkRenderer *  ren,
vtkMapper *  m 
) [virtual]

Renders actor

VTKViewer_DataSetMapper * SVTK_DeviceActor::GetDataSetMapper ( )
void SVTK_DeviceActor::SetQuadraticArcMode ( bool  theFlag) [virtual]

On/Off representation 2D quadratic element as arked polygon

bool SVTK_DeviceActor::GetQuadraticArcMode ( ) [virtual]

Return true if 2D quadratic element displayed as arked polygon

void SVTK_DeviceActor::SetQuadraticArcAngle ( vtkFloatingPointType  theMaxAngle) [virtual]

Set Max angle for representation 2D quadratic element as arked polygon

vtkFloatingPointType SVTK_DeviceActor::GetQuadraticArcAngle ( ) [virtual]

Return Max angle of the representation 2D quadratic element as arked polygon

void SVTK_DeviceActor::InitPipeLine ( vtkMapper *  theMapper) [protected]

To initialize internal pipeline

void SVTK_DeviceActor::SetPolygonOffsetParameters ( vtkFloatingPointType  factor,
vtkFloatingPointType  units 
) [protected]

Set polygon offset parameters

Parameters:
factor,units- Opengl polygon offset parameters
void SVTK_DeviceActor::GetPolygonOffsetParameters ( vtkFloatingPointType factor,
vtkFloatingPointType units 
) [protected]

Get polygon offset parameters

Parameters:
factor,units- Opengl polygon offset parameters
void SVTK_DeviceActor.operator= ( const SVTK_DeviceActor ) [private]

Field Documentation

vtkProperty* SVTK_DeviceActor.myProperty [protected]
bool SVTK_DeviceActor.myIsShaded [protected]
std::vector<vtkPassThroughFilter*> SVTK_DeviceActor.myPassFilter [protected]
vtkFeatureEdges* SVTK_DeviceActor.myFeatureEdges [protected]
bool SVTK_DeviceActor.myIsShrunk [protected]
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