23 #ifndef VTKVIEWER_TRIHEDRON_H
24 #define VTKVIEWER_TRIHEDRON_H
28 #include <vtkObject.h>
29 #include <vtkFollower.h>
30 #include <vtkVersion.h>
33 class vtkActorCollection;
36 class vtkPolyDataMapper;
45 #if !defined(VTK_XVERSION)
46 #define VTK_XVERSION (VTK_MAJOR_VERSION<<16)+(VTK_MINOR_VERSION<<8)+(VTK_BUILD_VERSION)
52 #if (VTK_XVERSION < 0x050200)
71 static VTKViewer_UnScaledActor *New();
73 virtual double* GetBounds();
74 virtual void SetSize(
int theSize);
75 virtual void Render(vtkRenderer *theRenderer);
78 VTKViewer_UnScaledActor();
97 static VTKViewer_LineActor *New();
103 void SetLabelActor(vtkTextActor* theLabelActor);
116 virtual void Render(vtkRenderer *theRenderer);
166 virtual void SetSize(
double theSize);
176 virtual void SetVisibility(TVisibility theVis);
185 virtual TVisibility GetVisibility();
190 virtual void AddToRender(vtkRenderer* theRenderer);
195 virtual void RemoveFromRender(vtkRenderer* theRenderer);
200 virtual int GetVisibleActorCount(vtkRenderer* theRenderer);
206 virtual bool OwnActor(
const vtkActor* theActor);
239 virtual void AddToRender(vtkRenderer* theRenderer);
240 virtual void RemoveFromRender(vtkRenderer* theRenderer);
253 virtual void SetCamera(vtkCamera* theCamera);
260 virtual void SetColor(
double theRed,
double theGreen,
double theBlue);
264 virtual void SetSize(
double theSize);
270 virtual vtkTextActor*
GetLabel() {
return myLabelActor; }
284 virtual bool OwnActor(
const vtkActor* theActor);
297 double myDir[3], myRot[3];
319 vtkPolyDataMapper *myMapper[3];
336 vtkVectorText* myVectorText;