-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//! Change opacity
virtual
void
- SetOpacity(vtkFloatingPointType theOpacity);
+ SetOpacity(double theOpacity);
//! Get current opacity
virtual
- vtkFloatingPointType
+ double
GetOpacity();
//! Change color
virtual
void
- SetColor(vtkFloatingPointType r,
- vtkFloatingPointType g,
- vtkFloatingPointType b);
+ SetColor(double r,
+ double g,
+ double b);
//! Get current color
virtual
void
- GetColor(vtkFloatingPointType& r,
- vtkFloatingPointType& g,
- vtkFloatingPointType& b);
+ GetColor(double& r,
+ double& g,
+ double& b);
//! Change color
virtual
void
- SetColor(const vtkFloatingPointType theRGB[3]);
+ SetColor(const double theRGB[3]);
//! Change material\r
virtual\r
//! Get coordinates of a node for given object index
virtual
- vtkFloatingPointType*
+ double*
GetNodeCoord(int theObjID);
//! Maps VTK index of a cell to corresponding object index
//! To calculatate last modified time
virtual
- unsigned long int
+ vtkMTimeType
GetMTime();
//----------------------------------------------------------------------------
//! To calcualte current bounding box
virtual
- vtkFloatingPointType*
+ double*
GetBounds();
//! To calcualte current bounding box
void
- GetBounds(vtkFloatingPointType bounds[6]);
+ GetBounds(double bounds[6]);
//----------------------------------------------------------------------------
virtual
virtual
void
- SetSize( const vtkFloatingPointType );
+ SetSize( const double );
virtual
void
//! Set ResolveCoincidentTopology parameters
void
- SetPolygonOffsetParameters(vtkFloatingPointType factor,
- vtkFloatingPointType units);
+ SetPolygonOffsetParameters(double factor,
+ double units);
//! Get current ResolveCoincidentTopology parameters
void
- GetPolygonOffsetParameters(vtkFloatingPointType& factor,
- vtkFloatingPointType& units);
+ GetPolygonOffsetParameters(double& factor,
+ double& units);
virtual
void
//----------------------------------------------------------------------------
//! Get current shrink factor
virtual
- vtkFloatingPointType
+ double
GetShrinkFactor();
//! Is the actor is shrunkable
GetChildActors(vtkActorCollection*);
//----------------------------------------------------------------------------
+ //! Is notified on enabling/disabling selection
+ virtual
+ void
+ EnableSelection( bool enable ) {}
+
//! Ask, if the descendant of the VTKViewer_Actor will implement its own highlight or not
virtual
bool
virtual void SetQuadraticArcMode(bool theFlag);
virtual bool GetQuadraticArcMode() const;
- virtual void SetQuadraticArcAngle(vtkFloatingPointType theMaxAngle);
- virtual vtkFloatingPointType GetQuadraticArcAngle() const;
+ virtual void SetQuadraticArcAngle(double theMaxAngle);
+ virtual double GetQuadraticArcAngle() const;
//----------------------------------------------------------------------------
//! Return pointer to the dataset, which used to calculation of the bounding box of the actor
protected:
//----------------------------------------------------------------------------
bool myIsResolveCoincidentTopology;
- vtkFloatingPointType myPolygonOffsetFactor;
- vtkFloatingPointType myPolygonOffsetUnits;
+ double myPolygonOffsetFactor;
+ double myPolygonOffsetUnits;
std::string myName;
- vtkFloatingPointType myOpacity;
+ double myOpacity;
int myDisplayMode;
bool myIsInfinite;