Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to paraview 5.4
[modules/gui.git]
/
src
/
VTKViewer
/
VTKViewer_Actor.h
diff --git
a/src/VTKViewer/VTKViewer_Actor.h
b/src/VTKViewer/VTKViewer_Actor.h
index 5225cd6b4df8317ed9374f103d02b5a6fd4a374f..e09c1e3e5184d211c428b4e3036aef5aeac3ce2e 100755
(executable)
--- a/
src/VTKViewer/VTKViewer_Actor.h
+++ b/
src/VTKViewer/VTKViewer_Actor.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
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
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-6,7
+6,7
@@
// 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
// 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
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-93,31
+93,31
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
//! Change opacity
virtual
void
//! Change opacity
virtual
void
- SetOpacity(
vtkFloatingPointTyp
e theOpacity);
+ SetOpacity(
doubl
e theOpacity);
//! Get current opacity
virtual
//! Get current opacity
virtual
-
vtkFloatingPointTyp
e
+
doubl
e
GetOpacity();
//! Change color
virtual
void
GetOpacity();
//! Change color
virtual
void
- SetColor(
vtkFloatingPointTyp
e r,
-
vtkFloatingPointTyp
e g,
-
vtkFloatingPointTyp
e b);
+ SetColor(
doubl
e r,
+
doubl
e g,
+
doubl
e b);
//! Get current color
virtual
void
//! Get current color
virtual
void
- GetColor(
vtkFloatingPointTyp
e& r,
-
vtkFloatingPointTyp
e& g,
-
vtkFloatingPointTyp
e& b);
+ GetColor(
doubl
e& r,
+
doubl
e& g,
+
doubl
e& b);
//! Change color
virtual
void
//! Change color
virtual
void
- SetColor(const
vtkFloatingPointTyp
e theRGB[3]);
+ SetColor(const
doubl
e theRGB[3]);
//! Change material
\r
virtual
\r
//! Change material
\r
virtual
\r
@@
-143,7
+143,7
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
//! Get coordinates of a node for given object index
virtual
//! Get coordinates of a node for given object index
virtual
-
vtkFloatingPointTyp
e*
+
doubl
e*
GetNodeCoord(int theObjID);
//! Maps VTK index of a cell to corresponding object index
GetNodeCoord(int theObjID);
//! Maps VTK index of a cell to corresponding object index
@@
-179,7
+179,7
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
//! To calculatate last modified time
virtual
//! To calculatate last modified time
virtual
- unsigned long int
+ vtkMTimeType
GetMTime();
//----------------------------------------------------------------------------
GetMTime();
//----------------------------------------------------------------------------
@@
-219,12
+219,12
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
//! To calcualte current bounding box
virtual
//! To calcualte current bounding box
virtual
-
vtkFloatingPointTyp
e*
+
doubl
e*
GetBounds();
//! To calcualte current bounding box
void
GetBounds();
//! To calcualte current bounding box
void
- GetBounds(
vtkFloatingPointTyp
e bounds[6]);
+ GetBounds(
doubl
e bounds[6]);
//----------------------------------------------------------------------------
virtual
//----------------------------------------------------------------------------
virtual
@@
-237,7
+237,7
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
virtual
void
virtual
void
- SetSize( const
vtkFloatingPointTyp
e );
+ SetSize( const
doubl
e );
virtual
void
virtual
void
@@
-250,13
+250,13
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
//! Set ResolveCoincidentTopology parameters
void
//! Set ResolveCoincidentTopology parameters
void
- SetPolygonOffsetParameters(
vtkFloatingPointTyp
e factor,
-
vtkFloatingPointTyp
e units);
+ SetPolygonOffsetParameters(
doubl
e factor,
+
doubl
e units);
//! Get current ResolveCoincidentTopology parameters
void
//! Get current ResolveCoincidentTopology parameters
void
- GetPolygonOffsetParameters(
vtkFloatingPointTyp
e& factor,
-
vtkFloatingPointTyp
e& units);
+ GetPolygonOffsetParameters(
doubl
e& factor,
+
doubl
e& units);
virtual
void
virtual
void
@@
-265,7
+265,7
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
//----------------------------------------------------------------------------
//! Get current shrink factor
virtual
//----------------------------------------------------------------------------
//! Get current shrink factor
virtual
-
vtkFloatingPointTyp
e
+
doubl
e
GetShrinkFactor();
//! Is the actor is shrunkable
GetShrinkFactor();
//! Is the actor is shrunkable
@@
-305,6
+305,11
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
GetChildActors(vtkActorCollection*);
//----------------------------------------------------------------------------
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
//! Ask, if the descendant of the VTKViewer_Actor will implement its own highlight or not
virtual
bool
@@
-339,8
+344,8
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
virtual void SetQuadraticArcMode(bool theFlag);
virtual bool GetQuadraticArcMode() const;
virtual void SetQuadraticArcMode(bool theFlag);
virtual bool GetQuadraticArcMode() const;
- virtual void SetQuadraticArcAngle(
vtkFloatingPointTyp
e theMaxAngle);
- virtual
vtkFloatingPointTyp
e GetQuadraticArcAngle() const;
+ virtual void SetQuadraticArcAngle(
doubl
e theMaxAngle);
+ virtual
doubl
e GetQuadraticArcAngle() const;
//----------------------------------------------------------------------------
//! Return pointer to the dataset, which used to calculation of the bounding box of the actor
//----------------------------------------------------------------------------
//! Return pointer to the dataset, which used to calculation of the bounding box of the actor
@@
-349,12
+354,12
@@
class VTKVIEWER_EXPORT VTKViewer_Actor : public vtkLODActor
protected:
//----------------------------------------------------------------------------
bool myIsResolveCoincidentTopology;
protected:
//----------------------------------------------------------------------------
bool myIsResolveCoincidentTopology;
-
vtkFloatingPointTyp
e myPolygonOffsetFactor;
-
vtkFloatingPointTyp
e myPolygonOffsetUnits;
+
doubl
e myPolygonOffsetFactor;
+
doubl
e myPolygonOffsetUnits;
std::string myName;
std::string myName;
-
vtkFloatingPointTyp
e myOpacity;
+
doubl
e myOpacity;
int myDisplayMode;
bool myIsInfinite;
int myDisplayMode;
bool myIsInfinite;