Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
PrsMgr_PresentationManager3d Class Reference

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>

Inheritance diagram for PrsMgr_PresentationManager3d:
Inheritance graph
[legend]

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< Viewer_View > &aView, 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

Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from PrsMgr_PresentationManager.

Handle_PrsMgr_Presentation3d PrsMgr_PresentationManager3d::CastPresentation ( const Handle< PrsMgr_PresentableObject > &  aPresentableObject,
const Standard_Integer  aMode = 0 
) const
const Handle_Graphic3d_StructureManager& PrsMgr_PresentationManager3d::StructureManager ( ) const

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