Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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_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

Enumerator
Wireframe 

wireframe

Shading 

shadin

ShadingWithEdges 

shading with edges

TexturedShape 

texture

CustomHighlight 

fields

Enumerator
TopShowAdditionalWActor 
TopKeepCurrent 

Keep current display mode.

TopWireFrame 
TopShading 
TopShadingWithEdges 

Constructor & Destructor Documentation

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

Member Function Documentation

void GEOM_AISShape::Compute ( const Handle(PrsMgr_PresentationManager3d)&  aPresentationManager,
const Handle(Prs3d_Presentation)&  aPresentation,
const Standard_Integer  aMode = 0 
)
virtual
Standard_Boolean GEOM_AISShape::computeMassCenter ( const TopoDS_Shape &  theShape,
gp_Pnt &  theCenter 
)
staticprotected

References Curve(), and Handle().

void GEOM_AISShape::drawField ( const Handle(Prs3d_Presentation)&  thePrs,
const bool  theIsText = false,
const bool  theIsHighlight = false 
)
protected
void GEOM_AISShape::drawName ( const Handle(Prs3d_Presentation)&  thePrs)
protected
void GEOM_AISShape::getFieldStepInfo ( GEOM::field_data_type theFieldDataType,
int &  theFieldDimension,
QList< QVariant > &  theFieldStepData,
TCollection_AsciiString &  theFieldStepName,
double &  theFieldStepRangeMin,
double &  theFieldStepRangeMax 
) const
Standard_CString GEOM_AISShape::getName ( )

References myName.

Standard_EXPORT GEOM_AISShape::Handle ( SALOME_InteractiveObject  )
Standard_Boolean GEOM_AISShape::hasIO ( )
void GEOM_AISShape::highlightSubShapes ( const TColStd_IndexedMapOfInteger &  aIndexMap,
const Standard_Boolean  aHighlight 
)
virtual Standard_EXPORT bool GEOM_AISShape::isShowName ( )
inlinevirtual

References myDisplayName.

virtual Standard_EXPORT bool GEOM_AISShape::isShowVectors ( )
inlinevirtual

Reimplemented in GEOM_AISVector.

References myDisplayVectors.

virtual Standard_EXPORT bool GEOM_AISShape::isShowVertices ( )
inlinevirtual

References myDisplayVertices.

Standard_Boolean GEOM_AISShape::isTopLevel ( )

References myTopLevel.

Standard_EXPORT Standard_Integer GEOM_AISShape::prevDisplayMode ( ) const
inline

References myPrevDisplayMode.

void GEOM_AISShape::SetDisplayName ( bool  isShow)

References myDisplayName.

void GEOM_AISShape::SetDisplayVectors ( bool  isShow)

References myDisplayVectors.

void GEOM_AISShape::SetDisplayVertices ( bool  isShow)

References myDisplayVertices.

void GEOM_AISShape::SetEdgesInShadingColor ( const Quantity_Color &  aCol)

References myEdgesInShadingColor.

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 
)
void GEOM_AISShape::setIO ( const Handle(SALOME_InteractiveObject)&  name)
void GEOM_AISShape::SetLabelColor ( const Quantity_Color &  aCol)

References myLabelColor.

void GEOM_AISShape::setName ( const Standard_CString  aName)

References Handle(), and myName.

void GEOM_AISShape::setPrevDisplayMode ( const Standard_Integer  mode)

References myPrevDisplayMode.

void GEOM_AISShape::SetShadingColor ( const Quantity_Color &  aCol)

References myShadingColor.

void GEOM_AISShape::setTopLevel ( Standard_Boolean  f)
void GEOM_AISShape::setTopLevelColor ( const Quantity_Color  c)
static

References myTopLevelColor.

void GEOM_AISShape::setTopLevelDisplayMode ( const TopLevelDispMode  dm)
static

References myTopLevelDm.

void GEOM_AISShape::shadingMode ( const Handle(PrsMgr_PresentationManager3d)&  aPresentationManager,
const Handle(Prs3d_Presentation)&  aPrs,
const Standard_Integer  aMode 
)
protected
Standard_Boolean GEOM_AISShape::switchTopLevel ( )
virtual
Standard_Boolean GEOM_AISShape::toActivate ( )
virtual
Quantity_Color GEOM_AISShape::topLevelColor ( )
static

References myTopLevelColor.

GEOM_AISShape::TopLevelDispMode GEOM_AISShape::topLevelDisplayMode ( )
static

References myTopLevelDm.

Member Data Documentation

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

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