Open CASCADE Technology 6.6.0
|
A framework to manage 3D displays, graphic entities
and their updates.
Used in the AIS package (Application Interactive
Services), to enable the advanced user to define the
default display mode of a new interactive object which
extends the list of signatures and types.
Definition of new display types is handled by calling
the presentation algorithms provided by the StdPrs package.
#include <PrsMgr_PresentationManager3d.hxx>
Public Member Functions | |
PrsMgr_PresentationManager3d (const Handle< Graphic3d_StructureManager > &aStructureManager) | |
Creates a framework to manage displays and graphic entities with the 3D view aStructureManager. | |
virtual Standard_Boolean | Is3D () const |
void | Color (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Quantity_NameOfColor aColor=Quantity_NOC_YELLOW, const Standard_Integer aMode=0) |
Highlights the graphic object aPresentableObject in the color aColor. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
void | BoundBox (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Standard_Integer aMode=0) |
highlights the boundbox of the presentation | |
void | BeginDraw () |
initializes the list of Prs to be displayed in transient mode | |
void | AddToImmediateList (const Handle< Prs3d_Presentation > &aPrs) |
stores <aPrs> in a list of structure to be displayed in immediate mode. will be taken in account in EndDraw Method. | |
void | EndDraw (const Handle< V3d_View > &theView, const Standard_Boolean DoubleBuffer=Standard_False) |
Allows rapid drawing of the view aView by avoiding an update of the whole background. If DoubleBuffer is true, the background is drawn. | |
void | Connect (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Handle< PrsMgr_PresentableObject > &anOtherObject, const Standard_Integer aMode=0, const Standard_Integer anOtherMode=0) |
void | Transform (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Handle< Geom_Transformation > &aTransformation, const Standard_Integer aMode=0) |
Sets the transformation aTransformation for the presentable object aPresentableObject. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
void | Place (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length Z, const Standard_Integer aMode=0) |
Sets a position to move the presentable object aPresentableObject to. This position is defined by the lengths along the x, y and z axes: X, Y and Z respectively. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
void | Multiply (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Handle< Geom_Transformation > &aTransformation, const Standard_Integer aMode=0) |
Defines the transformation aTransformation for the presentable object aPresentableObject. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
void | Move (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length Z, const Standard_Integer aMode=0) |
Sets a position to move the presentable object aPresentableObject to. This position is defined by the lengths along the x, y and z axes: X, Y and Z respectively. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. | |
const Handle_Graphic3d_StructureManager & | StructureManager () const |
Returns the structure manager. | |
void | SetShadingAspect (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Quantity_NameOfColor aColor, const Graphic3d_NameOfMaterial aMaterial, const Standard_Integer aMode=0) |
this method will change the color and the aspect of the presentations containg shaded structures. | |
void | SetShadingAspect (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Handle< Prs3d_ShadingAspect > &aShadingAspect, const Standard_Integer aMode=0) |
this method will change the color and the aspect of the presentations containg shaded structures. | |
Handle_PrsMgr_Presentation3d | CastPresentation (const Handle< PrsMgr_PresentableObject > &aPresentableObject, const Standard_Integer aMode=0) const |
PrsMgr_PresentationManager3d::PrsMgr_PresentationManager3d | ( | const Handle< Graphic3d_StructureManager > & | aStructureManager | ) |
void PrsMgr_PresentationManager3d::AddToImmediateList | ( | const Handle< Prs3d_Presentation > & | aPrs | ) |
void PrsMgr_PresentationManager3d::BeginDraw | ( | ) | [virtual] |
Reimplemented from PrsMgr_PresentationManager.
void PrsMgr_PresentationManager3d::BoundBox | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Standard_Integer | aMode = 0 |
||
) |
Handle_PrsMgr_Presentation3d PrsMgr_PresentationManager3d::CastPresentation | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Standard_Integer | aMode = 0 |
||
) | const |
void PrsMgr_PresentationManager3d::Color | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Quantity_NameOfColor | aColor = Quantity_NOC_YELLOW , |
||
const Standard_Integer | aMode = 0 |
||
) |
void PrsMgr_PresentationManager3d::Connect | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Handle< PrsMgr_PresentableObject > & | anOtherObject, | ||
const Standard_Integer | aMode = 0 , |
||
const Standard_Integer | anOtherMode = 0 |
||
) |
void PrsMgr_PresentationManager3d::EndDraw | ( | const Handle< V3d_View > & | aView, |
const Standard_Boolean | DoubleBuffer = Standard_False |
||
) | [virtual] |
Implements PrsMgr_PresentationManager.
virtual Standard_Boolean PrsMgr_PresentationManager3d::Is3D | ( | ) | const [virtual] |
Implements PrsMgr_PresentationManager.
void PrsMgr_PresentationManager3d::Move | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Quantity_Length | X, | ||
const Quantity_Length | Y, | ||
const Quantity_Length | Z, | ||
const Standard_Integer | aMode = 0 |
||
) |
void PrsMgr_PresentationManager3d::Multiply | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Handle< Geom_Transformation > & | aTransformation, | ||
const Standard_Integer | aMode = 0 |
||
) |
void PrsMgr_PresentationManager3d::Place | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Quantity_Length | X, | ||
const Quantity_Length | Y, | ||
const Quantity_Length | Z, | ||
const Standard_Integer | aMode = 0 |
||
) |
void PrsMgr_PresentationManager3d::SetShadingAspect | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Handle< Prs3d_ShadingAspect > & | aShadingAspect, | ||
const Standard_Integer | aMode = 0 |
||
) |
void PrsMgr_PresentationManager3d::SetShadingAspect | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Quantity_NameOfColor | aColor, | ||
const Graphic3d_NameOfMaterial | aMaterial, | ||
const Standard_Integer | aMode = 0 |
||
) |
const Handle_Graphic3d_StructureManager& PrsMgr_PresentationManager3d::StructureManager | ( | ) | const |
void PrsMgr_PresentationManager3d::Transform | ( | const Handle< PrsMgr_PresentableObject > & | aPresentableObject, |
const Handle< Geom_Transformation > & | aTransformation, | ||
const Standard_Integer | aMode = 0 |
||
) |