Version: 9.12.0
GEOM_AISShape Class Reference

....

#include <GEOM_AISShape.hxx>

Inheritance diagram for GEOM_AISShape:
Inheritance graph

Public Types

enum  DispMode {
  Wireframe = AIS_WireFrame , Shading = AIS_Shaded , ShadingWithEdges , TexturedShape ,
  CustomHighlight
}
 Enumeration of display modes. More...
 
enum  TopLevelDispMode {
  TopShowAdditionalWActor = 0 , TopKeepCurrent , TopWireFrame , TopShading ,
  TopShadingWithEdges
}
 Enumeration of top level display modes. More...
 

Public Member Functions

Standard_EXPORT GEOM_AISShape (const TopoDS_Shape &shape, const Standard_CString aName)
 
Standard_EXPORT ~GEOM_AISShape ()
 
Standard_EXPORT Standard_Boolean hasIO ()
 
Standard_EXPORT void setIO (const Handle(SALOME_InteractiveObject)&name)
 
Standard_EXPORT Handle (SALOME_InteractiveObject) getIO()
 
Standard_EXPORT void setName (const Standard_CString aName)
 
Standard_EXPORT Standard_CString getName ()
 
Standard_EXPORT Standard_Boolean isTopLevel ()
 
Standard_EXPORT void setTopLevel (Standard_Boolean)
 
Standard_EXPORT void highlightSubShapes (const TColStd_IndexedMapOfInteger &aIndexMap, const Standard_Boolean aHighlight)
 
Standard_Boolean AcceptDisplayMode (const Standard_Integer theMode) const
 
Standard_EXPORT void SetShadingColor (const Quantity_Color &aCol)
 
Standard_EXPORT void SetEdgesInShadingColor (const Quantity_Color &aCol)
 
Standard_EXPORT void SetLabelColor (const Quantity_Color &aCol)
 
Standard_EXPORT void SetDisplayVectors (bool isShow)
 
Standard_EXPORT void SetDisplayVertices (bool isShow)
 
Standard_EXPORT void SetDisplayName (bool isShow)
 
virtual Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPresentation, const Standard_Integer aMode=0)
 
virtual Standard_EXPORT bool isShowVectors ()
 
virtual Standard_EXPORT bool isShowVertices ()
 
virtual Standard_EXPORT bool isShowName ()
 
virtual Standard_EXPORT Standard_Boolean switchTopLevel ()
 
virtual Standard_EXPORT Standard_Boolean toActivate ()
 
Standard_EXPORT void setPrevDisplayMode (const Standard_Integer mode)
 
Standard_EXPORT Standard_Integer prevDisplayMode () const
 
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)
 
Standard_EXPORT void getFieldStepInfo (GEOM::field_data_type &theFieldDataType, int &theFieldDimension, QList< QVariant > &theFieldStepData, TCollection_AsciiString &theFieldStepName, double &theFieldStepRangeMin, double &theFieldStepRangeMax) const
 

Static Public Member Functions

static Standard_EXPORT Quantity_Color topLevelColor ()
 
static Standard_EXPORT void setTopLevelColor (const Quantity_Color c)
 
static Standard_EXPORT TopLevelDispMode topLevelDisplayMode ()
 
static Standard_EXPORT void setTopLevelDisplayMode (const TopLevelDispMode dm)
 

Protected Member Functions

Standard_EXPORT void shadingMode (const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPrs, const Standard_Integer aMode)
 
Standard_EXPORT void drawField (const Handle(Prs3d_Presentation)&thePrs, const bool theIsText=false, const bool theIsHighlight=false)
 
Standard_EXPORT void drawName (const Handle(Prs3d_Presentation)&thePrs)
 

Static Protected Member Functions

static Standard_EXPORT Standard_Boolean computeMassCenter (const TopoDS_Shape &theShape, gp_Pnt &theCenter)
 

Private Attributes

Quantity_Color myShadingColor
 
Quantity_Color myEdgesInShadingColor
 
Quantity_Color myLabelColor
 
TCollection_AsciiString myName
 
bool myDisplayVectors
 
bool myDisplayVertices
 
bool myDisplayName
 
Standard_Boolean myTopLevel
 
Standard_Integer myPrevDisplayMode
 
GEOM::field_data_type myFieldDataType
 
int myFieldDimension
 
QList< QVariant > myFieldStepData
 
TCollection_AsciiString myFieldStepName
 
double myFieldStepRangeMin
 
double myFieldStepRangeMax
 

Static Private Attributes

static TopLevelDispMode myTopLevelDm
 
static Quantity_Color myTopLevelColor
 

Member Enumeration Documentation

◆ DispMode

Enumerator
Wireframe 

wireframe

Shading 

shadin

ShadingWithEdges 

shading with edges

TexturedShape 

texture

CustomHighlight 

fields

◆ TopLevelDispMode

Enumerator
TopShowAdditionalWActor 
TopKeepCurrent 

Keep current display mode.

TopWireFrame 
TopShading 
TopShadingWithEdges 

Constructor & Destructor Documentation

◆ GEOM_AISShape()

GEOM_AISShape::GEOM_AISShape ( const TopoDS_Shape &  shape,
const Standard_CString  aName 
)

◆ ~GEOM_AISShape()

GEOM_AISShape::~GEOM_AISShape ( )

Member Function Documentation

◆ AcceptDisplayMode()

Standard_Boolean GEOM_AISShape::AcceptDisplayMode ( const Standard_Integer  theMode) const

References CustomHighlight, and Wireframe.

◆ Compute()

void GEOM_AISShape::Compute ( const Handle(PrsMgr_PresentationManager3d)&  aPresentationManager,
const Handle(Prs3d_Presentation)&  aPresentation,
const Standard_Integer  aMode = 0 
)
virtual

◆ computeMassCenter()

Standard_Boolean GEOM_AISShape::computeMassCenter ( const TopoDS_Shape &  theShape,
gp_Pnt &  theCenter 
)
staticprotected

References Handle().

◆ drawField()

void GEOM_AISShape::drawField ( const Handle(Prs3d_Presentation)&  thePrs,
const bool  theIsText = false,
const bool  theIsHighlight = false 
)
protected

◆ drawName()

void GEOM_AISShape::drawName ( const Handle(Prs3d_Presentation)&  thePrs)
protected

◆ getFieldStepInfo()

void GEOM_AISShape::getFieldStepInfo ( GEOM::field_data_type theFieldDataType,
int &  theFieldDimension,
QList< QVariant > &  theFieldStepData,
TCollection_AsciiString &  theFieldStepName,
double &  theFieldStepRangeMin,
double &  theFieldStepRangeMax 
) const

◆ getName()

Standard_CString GEOM_AISShape::getName ( )

References myName.

◆ Handle()

Standard_EXPORT GEOM_AISShape::Handle ( SALOME_InteractiveObject  )

◆ hasIO()

Standard_Boolean GEOM_AISShape::hasIO ( )

◆ highlightSubShapes()

void GEOM_AISShape::highlightSubShapes ( const TColStd_IndexedMapOfInteger &  aIndexMap,
const Standard_Boolean  aHighlight 
)

◆ isShowName()

virtual Standard_EXPORT bool GEOM_AISShape::isShowName ( )
inlinevirtual

References myDisplayName.

◆ isShowVectors()

virtual Standard_EXPORT bool GEOM_AISShape::isShowVectors ( )
inlinevirtual

Reimplemented in GEOM_AISVector.

References myDisplayVectors.

◆ isShowVertices()

virtual Standard_EXPORT bool GEOM_AISShape::isShowVertices ( )
inlinevirtual

References myDisplayVertices.

◆ isTopLevel()

Standard_Boolean GEOM_AISShape::isTopLevel ( )

References myTopLevel.

◆ prevDisplayMode()

Standard_EXPORT Standard_Integer GEOM_AISShape::prevDisplayMode ( ) const
inline

References myPrevDisplayMode.

◆ SetDisplayName()

void GEOM_AISShape::SetDisplayName ( bool  isShow)

References myDisplayName.

◆ SetDisplayVectors()

void GEOM_AISShape::SetDisplayVectors ( bool  isShow)

References myDisplayVectors.

◆ SetDisplayVertices()

void GEOM_AISShape::SetDisplayVertices ( bool  isShow)

References myDisplayVertices.

◆ SetEdgesInShadingColor()

void GEOM_AISShape::SetEdgesInShadingColor ( const Quantity_Color &  aCol)

References myEdgesInShadingColor.

◆ setFieldStepInfo()

void GEOM_AISShape::setFieldStepInfo ( const GEOM::field_data_type  theFieldDataType,
const int  theFieldDimension,
const QList< QVariant > &  theFieldStepData,
const TCollection_AsciiString &  theFieldStepName,
const double  theFieldStepRangeMin,
const double  theFieldStepRangeMax 
)

◆ setIO()

void GEOM_AISShape::setIO ( const Handle(SALOME_InteractiveObject)&  name)

◆ SetLabelColor()

void GEOM_AISShape::SetLabelColor ( const Quantity_Color &  aCol)

References myLabelColor.

◆ setName()

void GEOM_AISShape::setName ( const Standard_CString  aName)

References Handle(), and myName.

◆ setPrevDisplayMode()

void GEOM_AISShape::setPrevDisplayMode ( const Standard_Integer  mode)

References myPrevDisplayMode.

◆ SetShadingColor()

void GEOM_AISShape::SetShadingColor ( const Quantity_Color &  aCol)

References myShadingColor.

◆ setTopLevel()

void GEOM_AISShape::setTopLevel ( Standard_Boolean  f)

◆ setTopLevelColor()

void GEOM_AISShape::setTopLevelColor ( const Quantity_Color  c)
static

References myTopLevelColor.

◆ setTopLevelDisplayMode()

void GEOM_AISShape::setTopLevelDisplayMode ( const TopLevelDispMode  dm)
static

References myTopLevelDm.

◆ shadingMode()

void GEOM_AISShape::shadingMode ( const Handle(PrsMgr_PresentationManager3d)&  aPresentationManager,
const Handle(Prs3d_Presentation)&  aPrs,
const Standard_Integer  aMode 
)
protected

◆ switchTopLevel()

Standard_Boolean GEOM_AISShape::switchTopLevel ( )
virtual

◆ toActivate()

Standard_Boolean GEOM_AISShape::toActivate ( )
virtual

◆ topLevelColor()

Quantity_Color GEOM_AISShape::topLevelColor ( )
static

References myTopLevelColor.

◆ topLevelDisplayMode()

GEOM_AISShape::TopLevelDispMode GEOM_AISShape::topLevelDisplayMode ( )
static

References myTopLevelDm.

Member Data Documentation

◆ myDisplayName

bool GEOM_AISShape::myDisplayName
private

◆ myDisplayVectors

bool GEOM_AISShape::myDisplayVectors
private

◆ myDisplayVertices

bool GEOM_AISShape::myDisplayVertices
private

◆ myEdgesInShadingColor

Quantity_Color GEOM_AISShape::myEdgesInShadingColor
private

◆ myFieldDataType

GEOM::field_data_type GEOM_AISShape::myFieldDataType
private

◆ myFieldDimension

int GEOM_AISShape::myFieldDimension
private

◆ myFieldStepData

QList<QVariant> GEOM_AISShape::myFieldStepData
private

◆ myFieldStepName

TCollection_AsciiString GEOM_AISShape::myFieldStepName
private

◆ myFieldStepRangeMax

double GEOM_AISShape::myFieldStepRangeMax
private

◆ myFieldStepRangeMin

double GEOM_AISShape::myFieldStepRangeMin
private

◆ myLabelColor

Quantity_Color GEOM_AISShape::myLabelColor
private

◆ myName

TCollection_AsciiString GEOM_AISShape::myName
private

◆ myPrevDisplayMode

Standard_Integer GEOM_AISShape::myPrevDisplayMode
private

◆ myShadingColor

Quantity_Color GEOM_AISShape::myShadingColor
private

◆ myTopLevel

Standard_Boolean GEOM_AISShape::myTopLevel
private

◆ myTopLevelColor

Quantity_Color GEOM_AISShape::myTopLevelColor
staticprivate

◆ myTopLevelDm

TopLevelDispMode GEOM_AISShape::myTopLevelDm
staticprivate

The documentation for this class was generated from the following files: