int GEOM_Actor::GetWidth() const {
return (int)myIsolatedEdgeActor->GetProperty()->GetLineWidth();
}
+
+void GEOM_Actor::SetTransform(VTKViewer_Transform* theTransform)
+{
+ SALOME_Actor::SetTransform(theTransform);
+
+ myVertexActor->SetTransform(theTransform);
+ myStandaloneVertexActor->SetTransform(theTransform);
+ myIsolatedEdgeActor->SetTransform(theTransform);
+ myOneFaceEdgeActor->SetTransform(theTransform);
+ mySharedEdgeActor->SetTransform(theTransform);
+ myWireframeFaceActor->SetTransform(theTransform);
+ myShadingFaceActor->SetTransform(theTransform);
+ myHighlightActor->SetTransform(theTransform);
+ //myTextActor->SetTransform(theTransform);
+
+ Modified();
+}
void SetSelected(bool theIsSelected);
bool IsSelected() const { return myIsSelected;}
+ void SetTransform(VTKViewer_Transform* theTransform);
+
// OLD METHODS
// Properties
void SetHighlightProperty(vtkProperty* Prop);
#include <vtkPolyDataNormals.h>
#include <vtkActor.h>
#include <VTKViewer_Actor.h>
+#include <VTKViewer_Transform.h>
#include <vtkRenderer.h>
vtkStandardNewMacro(GEOM_DeviceActor);
{
theRenderer->RemoveActor(myActor.GetPointer());
}
+
+void
+GEOM_DeviceActor::
+SetTransform(VTKViewer_Transform* theTransform)
+{
+ myActor->SetTransform(theTransform);
+}
#include <vtkObject.h>
class vtkAlgorithmOutput;
+class VTKViewer_Transform;
class VTK_EXPORT GEOM_DeviceActor: public vtkObject
{
void RemoveFromRender(vtkRenderer* theRenderer);
PActor GetDeviceActor() {return myActor;}
+
+ void SetTransform(VTKViewer_Transform* theTransform);
protected:
PPolyDataNormals myPolyDataNormals;