Open CASCADE Technology 6.6.0
|
A framework to supply the Graphic3d
structure of the object to be presented. On the first
display request, this structure is created by calling the
appropriate algorithm and retaining this frameworkfor
further display.
This abstract framework is inherited in Application
Interactive Services (AIS), notably in:
More...
#include <PrsMgr_PresentableObject.hxx>
Public Member Functions | |
PrsMgr_TypeOfPresentation3d | TypeOfPresentation3d () const |
Returns information on whether the object accepts display in HLR mode or not. | |
virtual void | SetTransformPersistence (const Graphic3d_TransModeFlags &aFlag, const gp_Pnt &APoint) |
Sets up Transform Persistence Mode for this object. This function used to lock in object position, rotation and / or zooming relative to camera position. Object will be drawn in the origin setted by APoint parameter (except Graphic3d_TMF_TriedronPers flag | |
void | SetTransformPersistence (const Graphic3d_TransModeFlags &aFlag) |
Calls previous method with point (0,0,0) | |
Graphic3d_TransModeFlags | GetTransformPersistenceMode () const |
Gets Transform Persistence Mode for this object | |
gp_Pnt | GetTransformPersistencePoint () const |
Gets point of transform persistence for this object | |
void | SetTypeOfPresentation (const PrsMgr_TypeOfPresentation3d aType) |
void | SetToUpdate (const Standard_Integer aMode) |
flags the Prs of mode <AMode> to be Updated. the Update will be done when needed. | |
void | SetToUpdate () |
flags all the Presentations to be Updated. | |
void | ToBeUpdated (TColStd_ListOfInteger &ListOfMode) const |
gives the list of modes which are flagged "to be updated". | |
virtual void | SetLocation (const TopLoc_Location &aLoc) |
Standard_Boolean | HasLocation () const |
const TopLoc_Location & | Location () const |
virtual void | ResetLocation () |
virtual void | UpdateLocation () |
virtual void | UpdateLocation (const Handle< Prs3d_Presentation > &P) |
virtual void | SetZLayer (const Handle< PrsMgr_PresentationManager > &thePrsMgr, const Standard_Integer theLayerId) |
Set Z layer ID and update all presentations of the presentable object. The layer can be set only for displayed object. If all object presentations are removed, the layer ID will be set to default value when computing presentation. The layers mechanism allows drawing objects in higher layers in overlay of objects in lower layers. | |
Standard_Integer | GetZLayer (const Handle< PrsMgr_PresentationManager > &thePrsMgr) const |
Get ID of Z layer. If no presentations of object is displayed, and layer ID is unavailable, the -1 value is returned. | |
Protected Member Functions | |
PrsMgr_PresentableObject (const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d=PrsMgr_TOP_AllView) | |
virtual void | Compute (const Handle< PrsMgr_PresentationManager3d > &aPresentationManager, const Handle< Prs3d_Presentation > &aPresentation, const Standard_Integer aMode=0) |
Calculates the 3D view aPresentation and its updates. The latter are managed by aPresentationManager. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
virtual void | Compute (const Handle< Prs3d_Projector > &aProjector, const Handle< Prs3d_Presentation > &aPresentation) |
Calculates the 3D view aPresentation and its updates. The latter are managed by aPresentationManager. Each of the views in the viewer and every modification such as rotation, for example, entails recalculation. It must be redefined to implement hidden line removal for the object. The user never calls this method himself. This is done via the InteractiveContext object and is dependent on the point of view from which the object is displayed. | |
virtual void | Compute (const Handle< Prs3d_Projector > &aProjector, const Handle< Geom_Transformation > &aTrsf, const Handle< Prs3d_Presentation > &aPresentation) |
Calculates the 3D view aPresentation and its updates. The latter are managed by aPresentationManager. A point of view is provided by the projector aProjector, and the geometric transformation which has transformed associated presentable objects is specified by aTrsf. This function is to be used in case where a hidden line removal display cannot be calculated automatically. This occurs when associated presentable objects have been transformed geometrically, but not translated. Warning The transformation aTrsf must be applied to the object before computation. | |
void | Update (const Standard_Boolean AllModes=Standard_False) |
recomputes all presentations of the object. | |
void | Update (const Standard_Integer aMode, const Standard_Boolean ClearOther) |
Recomputes the presentation in the given mode. If ClearOther is true, other presentation will be cleared. | |
virtual void | Fill (const Handle< PrsMgr_PresentationManager > &aPresentationManager, const Handle< PrsMgr_Presentation > &aPresentation, const Standard_Integer aMode=0) |
High-level interface for controlling polygon offsets | |
PrsMgr_Presentations & | Presentations () |
Protected Attributes | |
PrsMgr_Presentations | myPresentations |
PrsMgr_TypeOfPresentation3d | myTypeOfPresentation3d |
TopLoc_Location | myLocation |
Friends | |
Handle_Graphic3d_Structure | PrsMgr_Presentation3d::Compute (const Handle< Graphic3d_DataStructureManager > &aProjector) |
void | PrsMgr_Presentation3d::Compute (const Handle< Graphic3d_DataStructureManager > &aProjector, const Handle< Graphic3d_Structure > &aGivenStruct) |
Handle_Graphic3d_Structure | PrsMgr_Presentation3d::Compute (const Handle< Graphic3d_DataStructureManager > &aProjector, const Handle< Geom_Transformation > &TheTrsf) |
void | PrsMgr_Presentation3d::Compute (const Handle< Graphic3d_DataStructureManager > &aProjector, const Handle< Geom_Transformation > &TheTrsf, const Handle< Graphic3d_Structure > &aGivenStruct) |
PrsMgr_PresentableObject::PrsMgr_PresentableObject | ( | const PrsMgr_TypeOfPresentation3d | aTypeOfPresentation3d = PrsMgr_TOP_AllView | ) | [protected] |
virtual void PrsMgr_PresentableObject::Compute | ( | const Handle< PrsMgr_PresentationManager3d > & | aPresentationManager, |
const Handle< Prs3d_Presentation > & | aPresentation, | ||
const Standard_Integer | aMode = 0 |
||
) | [protected, virtual] |
virtual void PrsMgr_PresentableObject::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [protected, virtual] |
Reimplemented in AIS_Shape, AIS_MultipleConnectedShape, AIS_ConnectedInteractive, and AIS_MultipleConnectedInteractive.
virtual void PrsMgr_PresentableObject::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [protected, virtual] |
Reimplemented in AIS_Point, AIS_Axis, AIS_Trihedron, AIS_PlaneTrihedron, AIS_Line, AIS_Circle, AIS_Plane, AIS_Shape, AIS_MultipleConnectedShape, AIS_ConnectedInteractive, AIS_MultipleConnectedInteractive, AIS_MaxRadiusDimension, AIS_MinRadiusDimension, AIS_LengthDimension, AIS_AngleDimension, AIS_RadiusDimension, AIS_DiameterDimension, AIS_Chamf2dDimension, AIS_Chamf3dDimension, AIS_OffsetDimension, AIS_FixRelation, AIS_PerpendicularRelation, AIS_ParallelRelation, AIS_TangentRelation, AIS_ConcentricRelation, AIS_IdenticRelation, AIS_SymmetricRelation, AIS_MidPointRelation, AIS_EqualRadiusRelation, AIS_EqualDistanceRelation, and StdSelect_Shape.
virtual void PrsMgr_PresentableObject::Fill | ( | const Handle< PrsMgr_PresentationManager > & | aPresentationManager, |
const Handle< PrsMgr_Presentation > & | aPresentation, | ||
const Standard_Integer | aMode = 0 |
||
) | [protected, virtual] |
Graphic3d_TransModeFlags PrsMgr_PresentableObject::GetTransformPersistenceMode | ( | ) | const |
gp_Pnt PrsMgr_PresentableObject::GetTransformPersistencePoint | ( | ) | const |
Standard_Integer PrsMgr_PresentableObject::GetZLayer | ( | const Handle< PrsMgr_PresentationManager > & | thePrsMgr | ) | const |
Standard_Boolean PrsMgr_PresentableObject::HasLocation | ( | ) | const |
const TopLoc_Location& PrsMgr_PresentableObject::Location | ( | ) | const |
PrsMgr_Presentations& PrsMgr_PresentableObject::Presentations | ( | ) | [protected] |
virtual void PrsMgr_PresentableObject::ResetLocation | ( | ) | [virtual] |
Reimplemented in SelectMgr_SelectableObject.
virtual void PrsMgr_PresentableObject::SetLocation | ( | const TopLoc_Location & | aLoc | ) | [virtual] |
Reimplemented in AIS_Trihedron.
void PrsMgr_PresentableObject::SetToUpdate | ( | ) |
void PrsMgr_PresentableObject::SetToUpdate | ( | const Standard_Integer | aMode | ) |
virtual void PrsMgr_PresentableObject::SetTransformPersistence | ( | const Graphic3d_TransModeFlags & | aFlag, |
const gp_Pnt & | APoint | ||
) | [virtual] |
void PrsMgr_PresentableObject::SetTransformPersistence | ( | const Graphic3d_TransModeFlags & | aFlag | ) |
void PrsMgr_PresentableObject::SetTypeOfPresentation | ( | const PrsMgr_TypeOfPresentation3d | aType | ) |
virtual void PrsMgr_PresentableObject::SetZLayer | ( | const Handle< PrsMgr_PresentationManager > & | thePrsMgr, |
const Standard_Integer | theLayerId | ||
) | [virtual] |
Reimplemented in SelectMgr_SelectableObject.
void PrsMgr_PresentableObject::ToBeUpdated | ( | TColStd_ListOfInteger & | ListOfMode | ) | const |
PrsMgr_TypeOfPresentation3d PrsMgr_PresentableObject::TypeOfPresentation3d | ( | ) | const |
void PrsMgr_PresentableObject::Update | ( | const Standard_Integer | aMode, |
const Standard_Boolean | ClearOther | ||
) | [protected] |
void PrsMgr_PresentableObject::Update | ( | const Standard_Boolean | AllModes = Standard_False | ) | [protected] |
virtual void PrsMgr_PresentableObject::UpdateLocation | ( | ) | [virtual] |
Reimplemented in SelectMgr_SelectableObject, and AIS_ConnectedInteractive.
virtual void PrsMgr_PresentableObject::UpdateLocation | ( | const Handle< Prs3d_Presentation > & | P | ) | [virtual] |
Handle_Graphic3d_Structure PrsMgr_Presentation3d::Compute | ( | const Handle< Graphic3d_DataStructureManager > & | aProjector | ) | [friend] |
void PrsMgr_Presentation3d::Compute | ( | const Handle< Graphic3d_DataStructureManager > & | aProjector, |
const Handle< Geom_Transformation > & | TheTrsf, | ||
const Handle< Graphic3d_Structure > & | aGivenStruct | ||
) | [friend] |
Handle_Graphic3d_Structure PrsMgr_Presentation3d::Compute | ( | const Handle< Graphic3d_DataStructureManager > & | aProjector, |
const Handle< Geom_Transformation > & | TheTrsf | ||
) | [friend] |
void PrsMgr_Presentation3d::Compute | ( | const Handle< Graphic3d_DataStructureManager > & | aProjector, |
const Handle< Graphic3d_Structure > & | aGivenStruct | ||
) | [friend] |
TopLoc_Location PrsMgr_PresentableObject::myLocation [protected] |