#include <GEOM_EdgeSource.h>
#include <GEOM_WireframeFace.h>
#include <GEOM_ShadingFace.h>
+#include <VTKViewer_TransformFilter.h>
+#include <vtkAppendPolyData.h>
+#include <VTKViewer_Transform.h>
+
+HYDROGUI_Actor::HYDROGUI_Actor()
+{
+ myVertexActor->GetDeviceActor()->SetMapper( myVertexActor->GetDeviceActor()->GetMapper() );
+ myIsolatedEdgeActor->GetDeviceActor()->SetMapper( myIsolatedEdgeActor->GetDeviceActor()->GetMapper() );
+ myOneFaceEdgeActor->GetDeviceActor()->SetMapper( myOneFaceEdgeActor->GetDeviceActor()->GetMapper() );
+ mySharedEdgeActor->GetDeviceActor()->SetMapper( mySharedEdgeActor->GetDeviceActor()->GetMapper() );
+ myWireframeFaceActor->GetDeviceActor()->SetMapper( myWireframeFaceActor->GetDeviceActor()->GetMapper() );
+ myShadingFaceActor->GetDeviceActor()->SetMapper( myShadingFaceActor->GetDeviceActor()->GetMapper() );
+ GEOM_Actor::myHighlightActor->GetDeviceActor()->SetMapper( GEOM_Actor::myHighlightActor->GetDeviceActor()->GetMapper() );
+}
+
+
+HYDROGUI_Actor::~HYDROGUI_Actor()
+{
+}
HYDROGUI_Actor* HYDROGUI_Actor::New()
{
}
void HYDROGUI_Actor::SetMapper( vtkMapper* theMapper )
-{
- SALOME_Actor::SetMapper(theMapper);
-}
-
-/*double* HYDROGUI_Actor::GetBounds()
{
- double* aBounds = GEOM_Actor::GetBounds();
- return aBounds;
-}*/
+ SALOME_Actor::SetMapper( theMapper );
+}
void HYDROGUI_Actor::SetTransform( VTKViewer_Transform* theTransform )
{
- SALOME_Actor::SetTransform( theTransform );
+ Superclass::SetTransform(theTransform);
myVertexActor ->GetDeviceActor()->SetTransform( theTransform );
myIsolatedEdgeActor ->GetDeviceActor()->SetTransform( theTransform );
myOneFaceEdgeActor ->GetDeviceActor()->SetTransform( theTransform );
mySharedEdgeActor ->GetDeviceActor()->SetTransform( theTransform );
myWireframeFaceActor->GetDeviceActor()->SetTransform( theTransform );
myShadingFaceActor ->GetDeviceActor()->SetTransform( theTransform );
- myHighlightActor ->GetDeviceActor()->SetTransform( theTransform );
+ GEOM_Actor::myHighlightActor->GetDeviceActor()->SetTransform( theTransform );
}
void HYDROGUI_Actor::SetShape( const TopoDS_Shape& theShape,
vtkTypeMacro( HYDROGUI_Actor, GEOM_Actor );
static HYDROGUI_Actor* New();
- void SetMapper( vtkMapper* theMapper );
-
- //virtual double* GetBounds();
virtual void SetTransform( VTKViewer_Transform* theTransform );
void SetShape(const TopoDS_Shape& theShape,
float theDeflection,
bool theIsVector = false);
+
+ protected:
+ virtual void SetMapper(vtkMapper*);
+
+ HYDROGUI_Actor();
+ ~HYDROGUI_Actor();
};
#endif