27 #ifndef VTKVIEVER_ACTOR_H
28 #define VTKVIEVER_ACTOR_H
36 #include <NCollection_IndexedMap.hxx>
37 #include <NCollection_Map.hxx>
39 #include <vtkLODActor.h>
40 #include <vtkProperty.h>
60 namespace Representation
72 #pragma warning ( disable:4251 )
94 setName(
const char* theName);
100 SetOpacity(
double theOpacity);
124 SetColor(
const double theRGB[3]);
129 SetMaterial(std::vector<vtkProperty*> theProps);
146 GetNodeObjId(vtkIdType theVtkID);
151 GetNodeCoord(vtkIdType theObjID);
156 GetNodeVtkId(vtkIdType theObjID);
161 GetElemObjId(vtkIdType theVtkID);
166 GetElemCell(vtkIdType theObjID);
172 GetObjDimension(
const vtkIdType theObjId );
177 SetMapper(vtkMapper* theMapper);
198 SetRepresentation(
int theMode);
213 setDisplayMode(
int theMode);
222 SetInfinitive(
bool theIsInfinite);
236 GetBounds(
double bounds[6]);
249 SetSize(
const double );
253 SetCamera( vtkCamera* );
258 SetResolveCoincidentTopology(
bool theIsResolve);
262 SetPolygonOffsetParameters(
double factor,
267 GetPolygonOffsetParameters(
double& factor,
273 GetDefaultPolygonOffsetParameters(
double& factor,
278 Render(vtkRenderer *, vtkMapper *);
310 AddToRender(vtkRenderer* theRendere);
315 RemoveFromRender(vtkRenderer* theRendere);
320 GetChildActors(vtkActorCollection*);
346 SetPreSelected(
bool thePreselect =
false);
352 highlight(
bool theHighlight);
359 virtual void SetQuadraticArcMode(
bool theFlag);
360 virtual bool GetQuadraticArcMode()
const;
362 virtual void SetQuadraticArcAngle(
double theMaxAngle);
363 virtual double GetQuadraticArcAngle()
const;
367 virtual vtkDataSet* GetHighlightedDataSet();
390 InitPipeLine(vtkMapper* theMapper);
403 static int HashCode(
const vtkIdType theValue,
const int theUpperBound)
405 return static_cast<int> ((theValue & (std::numeric_limits<vtkIdType>::max)()) % theUpperBound + 1);
408 static bool IsEqual(
const vtkIdType& id1,
const vtkIdType& id2 )
414 typedef NCollection_Map< vtkIdType, vtkIdHasher >
TVtkIDsMap;
418 #pragma warning ( default:4251 )
unsigned long int vtkMTimeType
Definition: VTKViewer.h:42
#define VTKVIEWER_EXPORT
Definition: VTKViewer.h:33
int VTKViewer_LINE_WIDTH
Definition: VTKViewer_Actor.cxx:54
int VTKViewer_POINT_SIZE
Definition: VTKViewer_Actor.cxx:53
NCollection_Map< vtkIdType, vtkIdHasher > TVtkIDsMap
Definition: VTKViewer_Actor.h:414
NCollection_IndexedMap< vtkIdType, vtkIdHasher > TIndexedMapOfVtkId
Definition: VTKViewer_Actor.h:415
Definition: VTKViewer_Actor.h:79
virtual void EnableSelection(bool)
Is notified on enabling/disabling selection.
Definition: VTKViewer_Actor.h:326
int myRepresentation
Definition: VTKViewer_Actor.h:386
double myOpacity
Definition: VTKViewer_Actor.h:377
vtkProperty * PreviewProperty
Definition: VTKViewer_Actor.h:396
std::vector< vtkPassThrough * > myPassFilter
Definition: VTKViewer_Actor.h:384
double myPolygonOffsetUnits
Definition: VTKViewer_Actor.h:373
double myPolygonOffsetFactor
Definition: VTKViewer_Actor.h:372
std::string myName
Definition: VTKViewer_Actor.h:375
bool myIsHighlighted
Definition: VTKViewer_Actor.h:398
bool myIsPreselected
Definition: VTKViewer_Actor.h:397
VTKViewer_TransformFilter * myTransformFilter
Definition: VTKViewer_Actor.h:383
int myDisplayMode
Definition: VTKViewer_Actor.h:378
VTKViewer_GeometryFilter * myGeomFilter
Definition: VTKViewer_Actor.h:382
bool myStoreMapping
Definition: VTKViewer_Actor.h:381
bool myIsResolveCoincidentTopology
Definition: VTKViewer_Actor.h:371
static VTKViewer_Actor * New()
vtkProperty * myProperty
Definition: VTKViewer_Actor.h:387
bool myIsInfinite
Definition: VTKViewer_Actor.h:379
vtkTypeMacro(VTKViewer_Actor, vtkLODActor) virtual const char *getName()
Get its name.
void SetPreviewProperty(vtkProperty *theProperty)
This class used same as vtkGeometryFilter. See documentation on VTK for more information.
Definition: VTKViewer_GeometryFilter.h:42
For more information see VTK documentation
int Type
Definition: VTKViewer_Actor.h:62
const Type Wireframe
Definition: VTKViewer_Actor.h:64
const Type Insideframe
Definition: VTKViewer_Actor.h:66
const Type SurfaceWithEdges
Definition: VTKViewer_Actor.h:67
const Type Points
Definition: VTKViewer_Actor.h:63
const Type Surface
Definition: VTKViewer_Actor.h:65
Definition: VTKViewer_Actor.h:59
Definition: VTKViewer_Actor.h:402
static int HashCode(const vtkIdType theValue, const int theUpperBound)
Definition: VTKViewer_Actor.h:403
static bool IsEqual(const vtkIdType &id1, const vtkIdType &id2)
Definition: VTKViewer_Actor.h:408