Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright message
[modules/geom.git]
/
src
/
OBJECT
/
GEOM_Actor.h
diff --git
a/src/OBJECT/GEOM_Actor.h
b/src/OBJECT/GEOM_Actor.h
index d773b6cf6b090fd89d622a7af34c49ce05a0d67a..0daf5306870066eda387cdcb9100550db82660bd 100644
(file)
--- a/
src/OBJECT/GEOM_Actor.h
+++ b/
src/OBJECT/GEOM_Actor.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
12 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
23 CEA, EDF
, 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
@@
-51,6
+51,7
@@
class GEOM_ShadingFace;
typedef GEOM_SmartPtr<GEOM_ShadingFace> PSFaceSource;
class vtkRenderer;
typedef GEOM_SmartPtr<GEOM_ShadingFace> PSFaceSource;
class vtkRenderer;
+class vtkTextActor;
class vtkAppendPolyData;
typedef GEOM_SmartPtr<vtkAppendPolyData> PAppendFilter;
class vtkAppendPolyData;
typedef GEOM_SmartPtr<vtkAppendPolyData> PAppendFilter;
@@
-58,15
+59,15
@@
typedef GEOM_SmartPtr<vtkAppendPolyData> PAppendFilter;
class GEOM_OBJECT_EXPORT GEOM_Actor: public SALOME_Actor
{
public:
class GEOM_OBJECT_EXPORT GEOM_Actor: public SALOME_Actor
{
public:
- vtkTypeMacro(GEOM_Actor,SALOME_Actor)
;
+ vtkTypeMacro(GEOM_Actor,SALOME_Actor)
static GEOM_Actor* New();
void SetShape(const TopoDS_Shape& theShape,
static GEOM_Actor* New();
void SetShape(const TopoDS_Shape& theShape,
-
float
theDeflection,
- bool theIsVector = false);
+
double
theDeflection,
+
bool theIsVector = false);
- void SetDeflection(
float
theDeflection);
-
float
GetDeflection() const{ return myDeflection;}
+ void SetDeflection(
double
theDeflection);
+
double
GetDeflection() const{ return myDeflection;}
void AddToRender(vtkRenderer* theRenderer);
void RemoveFromRender(vtkRenderer* theRenderer);
void AddToRender(vtkRenderer* theRenderer);
void RemoveFromRender(vtkRenderer* theRenderer);
@@
-89,10
+90,10
@@
public:
vtkProperty* GetShadingProperty();
vtkProperty* GetIsolatedEdgeProperty();
vtkProperty* GetVertexProperty();
vtkProperty* GetShadingProperty();
vtkProperty* GetIsolatedEdgeProperty();
vtkProperty* GetVertexProperty();
+ vtkProperty* GetStandaloneVertexProperty();
vtkProperty* GetSharedEdgeProperty();
vtkProperty* GetFaceEdgeProperty();
vtkProperty* GetSharedEdgeProperty();
vtkProperty* GetFaceEdgeProperty();
- void setDeflection(double adef);
virtual void setDisplayMode(int thenewmode);
// Description:
virtual void setDisplayMode(int thenewmode);
// Description:
@@
-107,7
+108,6
@@
public:
const TopoDS_Shape& getTopo();
void setInputShape(const TopoDS_Shape& ashape, double adef1,
int imode, bool isVector = false);
const TopoDS_Shape& getTopo();
void setInputShape(const TopoDS_Shape& ashape, double adef1,
int imode, bool isVector = false);
- double getDeflection();
double isVector();
// SubShape
double isVector();
// SubShape
@@
-121,24
+121,26
@@
public:
void ShallowCopy(vtkProp *prop);
// Opacity
void ShallowCopy(vtkProp *prop);
// Opacity
- void SetOpacity(
vtkFloatingPointTyp
e opa);
-
vtkFloatingPointTyp
e GetOpacity();
+ void SetOpacity(
doubl
e opa);
+
doubl
e GetOpacity();
// Color (same to all sub-actors/display modes)
// Color (same to all sub-actors/display modes)
- void SetColor(
vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointTyp
e b);
- void GetColor(
vtkFloatingPointType& r, vtkFloatingPointType& g, vtkFloatingPointTyp
e& b);
+ void SetColor(
double r, double g, doubl
e b);
+ void GetColor(
double& r, double& g, doubl
e& b);
// Color of points
// Color of points
- void SetPointColor(
vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointTyp
e b);
+ void SetPointColor(
double r, double g, doubl
e b);
// Color of standalone edges, wires, vectors
// Color of standalone edges, wires, vectors
- void SetIsolatedEdgeColor(
vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointTyp
e b);
+ void SetIsolatedEdgeColor(
double r, double g, doubl
e b);
// Color of shared edges
// Color of shared edges
- void SetSharedEdgeColor(
vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointTyp
e b);
+ void SetSharedEdgeColor(
double r, double g, doubl
e b);
// Color of free edges
// Color of free edges
- void SetFreeEdgeColor(
vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointTyp
e b);
+ void SetFreeEdgeColor(
double r, double g, doubl
e b);
// Color of edges in shading+edges display mode
// Color of edges in shading+edges display mode
- void SetEdgesInShadingColor(
vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointTyp
e b);
+ void SetEdgesInShadingColor(
double r, double g, doubl
e b);
// Color of iso-lines
// Color of iso-lines
- void SetIsosColor(vtkFloatingPointType r, vtkFloatingPointType g, vtkFloatingPointType b);
+ void SetIsosColor(double r, double g, double b);
+ // Color of labels
+ void SetLabelColor(double r, double g, double b);
// Material
// Material
@@
-201,39
+203,58
@@
public:
virtual
bool
GetVectorMode();
virtual
bool
GetVectorMode();
-
- void
- StoreIsoNumbers();
+ //! Vertices mode management
+ virtual
void
void
- RestoreIsoNumbers();
-
+ SetVerticesMode(const bool theMode);
+
+ virtual
+ bool
+ GetVerticesMode();
+
+ //! Name mode management
+ virtual
void
void
- ResetIsoNumbers();
+ SetNameMode(const bool theMode);
+
+ virtual
+ bool
+ GetNameMode();
+
+ virtual
+ void
+ SetTransform(VTKViewer_Transform* theTransform);
+
protected:
void SetModified();
void GetMatrix(vtkCamera* theCam, vtkMatrix4x4 *result);
protected:
void SetModified();
void GetMatrix(vtkCamera* theCam, vtkMatrix4x4 *result);
+ void SetShapeName();
GEOM_Actor();
~GEOM_Actor();
private:
TopoDS_Shape myShape;
GEOM_Actor();
~GEOM_Actor();
private:
TopoDS_Shape myShape;
- int myNbIsos[2];
bool isOnlyVertex;
bool isOnlyVertex;
-
float
myDeflection;
+
double
myDeflection;
bool myIsForced;
// EDisplayMode myDisplayMode;
bool myIsSelected;
bool myVectorMode;
bool myIsForced;
// EDisplayMode myDisplayMode;
bool myIsSelected;
bool myVectorMode;
+ bool myVerticesMode;
+ bool myNameMode;
PDeviceActor myVertexActor;
PVertexSource myVertexSource;
PDeviceActor myVertexActor;
PVertexSource myVertexSource;
+ PDeviceActor myStandaloneVertexActor;
+ PVertexSource myStandaloneVertexSource;
+
PDeviceActor myIsolatedEdgeActor;
PEdgeSource myIsolatedEdgeSource;
PDeviceActor myIsolatedEdgeActor;
PEdgeSource myIsolatedEdgeSource;
@@
-250,6
+271,9
@@
private:
PSFaceSource myShadingFaceSource;
PDeviceActor myHighlightActor;
PSFaceSource myShadingFaceSource;
PDeviceActor myHighlightActor;
+
+ vtkTextActor* myTextActor;
+
vtkSmartPointer<vtkProperty> myHighlightProp;
vtkSmartPointer<vtkProperty> myPreHighlightProp;
vtkSmartPointer<vtkProperty> myShadingFaceProp;
vtkSmartPointer<vtkProperty> myHighlightProp;
vtkSmartPointer<vtkProperty> myPreHighlightProp;
vtkSmartPointer<vtkProperty> myShadingFaceProp;
@@
-263,11
+287,11
@@
private:
GEOM_Actor(const GEOM_Actor&);
void operator=(const GEOM_Actor&);
GEOM_Actor(const GEOM_Actor&);
void operator=(const GEOM_Actor&);
-
vtkFloatingPointTyp
e myEdgesInWireframeColor[3];
-
vtkFloatingPointTyp
e myEdgesInShadingColor[3];
-
vtkFloatingPointTyp
e myIsolatedEdgeColor[3];
-
vtkFloatingPointTyp
e mySharedEdgeColor[3];
-
vtkFloatingPointTyp
e myOneFaceEdgeColor[3];
+
doubl
e myEdgesInWireframeColor[3];
+
doubl
e myEdgesInShadingColor[3];
+
doubl
e myIsolatedEdgeColor[3];
+
doubl
e mySharedEdgeColor[3];
+
doubl
e myOneFaceEdgeColor[3];
};
#endif //GEOM_ACTOR_H
};
#endif //GEOM_ACTOR_H