23 #ifndef _GEOM_AISShape_HeaderFile
24 #define _GEOM_AISShape_HeaderFile
26 #include <SALOME_AISShape.hxx>
27 #include <SALOME_InteractiveObject.hxx>
29 #include <Standard.hxx>
30 #include <Standard_DefineHandle.hxx>
31 #include <PrsMgr_PresentationManager.hxx>
32 #include <TCollection_AsciiString.hxx>
33 #include <AIS_DisplayMode.hxx>
38 #include <SALOMEconfig.h>
39 #include CORBA_SERVER_HEADER(GEOM_Gen)
64 Standard_EXPORT
GEOM_AISShape(
const TopoDS_Shape& shape,
const Standard_CString aName);
67 Standard_EXPORT Standard_Boolean
hasIO();
71 Standard_EXPORT
void setName(
const Standard_CString aName);
72 Standard_EXPORT Standard_CString
getName();
77 Standard_EXPORT
void highlightSubShapes(
const TColStd_IndexedMapOfInteger& aIndexMap,
const Standard_Boolean aHighlight );
83 Standard_EXPORT
void SetLabelColor(
const Quantity_Color &aCol);
88 Standard_EXPORT
virtual void Compute(
const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
89 const Handle(Prs3d_Presentation)& aPresentation,
90 const Standard_Integer aMode = 0);
97 Standard_EXPORT
virtual Standard_Boolean
toActivate();
110 const int theFieldDimension,
111 const QList<QVariant>& theFieldStepData,
112 const TCollection_AsciiString& theFieldStepName,
113 const double theFieldStepRangeMin,
114 const double theFieldStepRangeMax );
116 int& theFieldDimension,
117 QList<QVariant>& theFieldStepData,
118 TCollection_AsciiString& theFieldStepName,
119 double& theFieldStepRangeMin,
120 double& theFieldStepRangeMax )
const;
123 Standard_EXPORT
void shadingMode(
const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
124 const Handle(Prs3d_Presentation)& aPrs,
125 const Standard_Integer aMode);
128 Standard_EXPORT
void drawField(
const Handle(Prs3d_Presentation)& thePrs,
129 const bool theIsText =
false,
130 const bool theIsHighlight =
false );
133 Standard_EXPORT
void drawName(
const Handle(Prs3d_Presentation)& thePrs );
136 Standard_EXPORT
static Standard_Boolean
computeMassCenter(
const TopoDS_Shape& theShape,
DEFINE_STANDARD_HANDLE(GEOM_Field, GEOM_BaseObject) DEFINE_STANDARD_HANDLE(GEOM_FieldStep
....
Definition: GEOM_AISShape.hxx:44
Standard_Integer myPrevDisplayMode
Definition: GEOM_AISShape.hxx:149
Standard_Boolean myTopLevel
Definition: GEOM_AISShape.hxx:148
Standard_EXPORT void SetShadingColor(const Quantity_Color &aCol)
Definition: GEOM_AISShape.cxx:355
Standard_EXPORT void drawName(const Handle(Prs3d_Presentation)&thePrs)
Definition: GEOM_AISShape.cxx:664
Standard_EXPORT Standard_CString getName()
Definition: GEOM_AISShape.cxx:216
int myFieldDimension
Definition: GEOM_AISShape.hxx:152
Standard_EXPORT ~GEOM_AISShape()
Definition: GEOM_AISShape.cxx:185
virtual Standard_EXPORT bool isShowVectors()
Definition: GEOM_AISShape.hxx:92
Standard_EXPORT Standard_Boolean isTopLevel()
Definition: GEOM_AISShape.cxx:451
Standard_EXPORT void setName(const Standard_CString aName)
Definition: GEOM_AISShape.cxx:207
bool myDisplayVertices
Definition: GEOM_AISShape.hxx:146
Standard_EXPORT Standard_Integer prevDisplayMode() const
Definition: GEOM_AISShape.hxx:106
static Standard_EXPORT void setTopLevelDisplayMode(const TopLevelDispMode dm)
Definition: GEOM_AISShape.cxx:496
Standard_EXPORT void drawField(const Handle(Prs3d_Presentation)&thePrs, const bool theIsText=false, const bool theIsHighlight=false)
Definition: GEOM_AISShape.cxx:541
Standard_EXPORT void highlightSubShapes(const TColStd_IndexedMapOfInteger &aIndexMap, const Standard_Boolean aHighlight)
Definition: GEOM_AISShape.cxx:370
static Quantity_Color myTopLevelColor
Definition: GEOM_AISShape.hxx:159
static Standard_EXPORT void setTopLevelColor(const Quantity_Color c)
Definition: GEOM_AISShape.cxx:486
virtual Standard_EXPORT Standard_Boolean toActivate()
Definition: GEOM_AISShape.cxx:506
Standard_EXPORT void SetLabelColor(const Quantity_Color &aCol)
Definition: GEOM_AISShape.cxx:365
QList< QVariant > myFieldStepData
Definition: GEOM_AISShape.hxx:153
virtual Standard_EXPORT bool isShowName()
Definition: GEOM_AISShape.hxx:94
Standard_EXPORT void SetEdgesInShadingColor(const Quantity_Color &aCol)
Definition: GEOM_AISShape.cxx:360
Quantity_Color myShadingColor
Definition: GEOM_AISShape.hxx:140
Standard_EXPORT void setTopLevel(Standard_Boolean)
Definition: GEOM_AISShape.cxx:456
Standard_EXPORT void SetDisplayVertices(bool isShow)
Definition: GEOM_AISShape.cxx:406
Quantity_Color myEdgesInShadingColor
Definition: GEOM_AISShape.hxx:141
static TopLevelDispMode myTopLevelDm
Definition: GEOM_AISShape.hxx:158
Quantity_Color myLabelColor
Definition: GEOM_AISShape.hxx:142
Standard_EXPORT GEOM_AISShape(const TopoDS_Shape &shape, const Standard_CString aName)
Definition: GEOM_AISShape.cxx:146
Standard_EXPORT void getFieldStepInfo(GEOM::field_data_type &theFieldDataType, int &theFieldDimension, QList< QVariant > &theFieldStepData, TCollection_AsciiString &theFieldStepName, double &theFieldStepRangeMin, double &theFieldStepRangeMax) const
Definition: GEOM_AISShape.cxx:526
Standard_EXPORT void setFieldStepInfo(const GEOM::field_data_type theFieldDataType, const int theFieldDimension, const QList< QVariant > &theFieldStepData, const TCollection_AsciiString &theFieldStepName, const double theFieldStepRangeMin, const double theFieldStepRangeMax)
Definition: GEOM_AISShape.cxx:511
DispMode
Enumeration of display modes.
Definition: GEOM_AISShape.hxx:47
@ Shading
shadin
Definition: GEOM_AISShape.hxx:49
@ CustomHighlight
fields
Definition: GEOM_AISShape.hxx:52
@ ShadingWithEdges
shading with edges
Definition: GEOM_AISShape.hxx:50
@ TexturedShape
texture
Definition: GEOM_AISShape.hxx:51
@ Wireframe
wireframe
Definition: GEOM_AISShape.hxx:48
TCollection_AsciiString myFieldStepName
Definition: GEOM_AISShape.hxx:154
GEOM::field_data_type myFieldDataType
Definition: GEOM_AISShape.hxx:151
TopLevelDispMode
Enumeration of top level display modes.
Definition: GEOM_AISShape.hxx:56
@ TopShowAdditionalWActor
Definition: GEOM_AISShape.hxx:57
@ TopKeepCurrent
Keep current display mode.
Definition: GEOM_AISShape.hxx:58
@ TopShadingWithEdges
Definition: GEOM_AISShape.hxx:61
@ TopShading
Definition: GEOM_AISShape.hxx:60
@ TopWireFrame
Definition: GEOM_AISShape.hxx:59
Standard_EXPORT Handle(SALOME_InteractiveObject) getIO()
Standard_EXPORT void shadingMode(const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPrs, const Standard_Integer aMode)
Definition: GEOM_AISShape.cxx:416
static Standard_EXPORT Quantity_Color topLevelColor()
Definition: GEOM_AISShape.cxx:481
Standard_EXPORT Standard_Boolean hasIO()
Definition: GEOM_AISShape.cxx:202
double myFieldStepRangeMax
Definition: GEOM_AISShape.hxx:156
Standard_Boolean AcceptDisplayMode(const Standard_Integer theMode) const
Definition: GEOM_AISShape.cxx:221
bool myDisplayVectors
Definition: GEOM_AISShape.hxx:145
virtual Standard_EXPORT bool isShowVertices()
Definition: GEOM_AISShape.hxx:93
double myFieldStepRangeMin
Definition: GEOM_AISShape.hxx:155
static Standard_EXPORT Standard_Boolean computeMassCenter(const TopoDS_Shape &theShape, gp_Pnt &theCenter)
Definition: GEOM_AISShape.cxx:688
bool myDisplayName
Definition: GEOM_AISShape.hxx:147
Standard_EXPORT void setIO(const Handle(SALOME_InteractiveObject)&name)
Definition: GEOM_AISShape.cxx:189
static Standard_EXPORT TopLevelDispMode topLevelDisplayMode()
Definition: GEOM_AISShape.cxx:491
virtual Standard_EXPORT Standard_Boolean switchTopLevel()
Definition: GEOM_AISShape.cxx:501
Standard_EXPORT void setPrevDisplayMode(const Standard_Integer mode)
Definition: GEOM_AISShape.cxx:476
Standard_EXPORT void SetDisplayVectors(bool isShow)
Definition: GEOM_AISShape.cxx:401
Standard_EXPORT void SetDisplayName(bool isShow)
Definition: GEOM_AISShape.cxx:411
virtual Standard_EXPORT void Compute(const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPresentation, const Standard_Integer aMode=0)
Definition: GEOM_AISShape.cxx:226
TCollection_AsciiString myName
Definition: GEOM_AISShape.hxx:144
field_data_type
Type of field data.
Definition: GEOM_Gen.idl:191