34 #include <SALOME_Actor.h>
36 #include <TopoDS_Shape.hxx>
37 #include <vtkSmartPointer.h>
56 class vtkAppendPolyData;
65 void SetShape(
const TopoDS_Shape& theShape,
67 bool theIsVector =
false);
69 void SetDeflection(
double theDeflection);
72 void AddToRender(vtkRenderer* theRenderer);
73 void RemoveFromRender(vtkRenderer* theRenderer);
80 void SetSelected(
bool theIsSelected);
97 virtual void setDisplayMode(
int thenewmode);
102 virtual void Render(vtkRenderer *, vtkMapper *);
107 void ReleaseGraphicsResources(vtkWindow *);
108 const TopoDS_Shape& getTopo();
109 void setInputShape(
const TopoDS_Shape& ashape,
double adef1,
110 int imode,
bool isVector =
false);
118 virtual void highlight(
bool theHighlight);
121 void ShallowCopy(vtkProp *prop);
124 void SetOpacity(
double opa);
128 void SetColor(
double r,
double g,
double b);
129 void GetColor(
double& r,
double& g,
double& b);
131 void SetPointColor(
double r,
double g,
double b);
133 void SetIsolatedEdgeColor(
double r,
double g,
double b);
135 void SetSharedEdgeColor(
double r,
double g,
double b);
137 void SetFreeEdgeColor(
double r,
double g,
double b);
139 void SetEdgesInShadingColor(
double r,
double g,
double b);
141 void SetIsosColor(
double r,
double g,
double b);
143 void SetLabelColor(
double r,
double g,
double b);
147 void SetMaterial(std::vector<vtkProperty*> theProps);
150 virtual bool IsInfinitive();
156 Highlight(
bool theHighlight);
162 PreHighlight(vtkInteractorStyle* theInteractorStyle,
163 SVTK_SelectionEvent* theSelectionEvent,
164 bool theIsHighlight);
169 Highlight(vtkInteractorStyle* theInteractorStyle,
170 SVTK_SelectionEvent* theSelectionEvent,
171 bool theIsHighlight);
176 SetVisibility(
int );
183 SetNbIsos(
const int theNb[2]);
187 GetNbIsos(
int &theNbU,
int &theNbV);
190 void SetIsosWidth(
const int width);
192 int GetIsosWidth()
const;
194 virtual void SetWidth(
const int width);
196 int GetWidth()
const;
201 SetVectorMode(
const bool theMode);
210 SetVerticesMode(
const bool theMode);
219 SetNameMode(
const bool theMode);
228 void GetMatrix(vtkCamera* theCam, vtkMatrix4x4 *result);
280 virtual void SetMapper(vtkMapper*);
285 double myEdgesInWireframeColor[3];
286 double myEdgesInShadingColor[3];
287 double myIsolatedEdgeColor[3];
288 double mySharedEdgeColor[3];
289 double myOneFaceEdgeColor[3];
292 #endif //GEOM_ACTOR_H