// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#ifndef GEOM_VTKTrihedron_H
#define GEOM_VTKTrihedron_H
+#include "GEOM_OBJECT_defs.hxx"
+
#include <Geom_Axis2Placement.hxx>
#include "SALOME_Actor.h"
#include "VTKViewer_Trihedron.h"
-#ifdef WNT
-#include <SALOME_WNT.hxx>
-#else
-#define SALOME_WNT_EXPORT
-#endif
-
-
-class vtkActorCollection;
class vtkRenderer;
class vtkPolyDataMapper;
Placement of trihedron is chahged with SetPlacement() method
*/
-class SALOME_WNT_EXPORT GEOM_VTKTrihedron : public SALOME_Actor
+class GEOM_OBJECT_EXPORT GEOM_VTKTrihedron : public SALOME_Actor
{
protected:
vtkTypeMacro( GEOM_VTKTrihedron, SALOME_Actor );
static GEOM_VTKTrihedron* New();
- virtual float GetSize() { return mySize;}
+ virtual vtkFloatingPointType GetSize() { return mySize;}
virtual void SetVisibility( VTKViewer_Trihedron::TVisibility theVis );
virtual void VisibilityOff() { SetVisibility( VTKViewer_Trihedron::eOff ); }
virtual void Render(vtkRenderer *, vtkMapper *);
virtual bool IsSetCamera() const;
virtual bool IsResizable() const;
- virtual void SetSize( float );
+ virtual void SetSize( vtkFloatingPointType );
virtual void SetCamera( vtkCamera* );
- void SetColor( float r, float g, float b );
- void GetColor( float& r, float& g, float& b );
+ void SetColor( vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointType b );
+ void GetColor( vtkFloatingPointType& r, vtkFloatingPointType& g, vtkFloatingPointType& b );
virtual bool hasHighlight() { return false; }
protected:
VTKViewer_Axis* myAxis[3];
vtkPolyDataMapper* myMapper;
- float mySize;
+ vtkFloatingPointType mySize;
gp_Pnt myLocation;
gp_Dir myDirX, myDirY, myDirZ;
- float myColor[ 3 ];
+ vtkFloatingPointType myColor[ 3 ];
};
#endif