OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKV3d
PrsMgr


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

Standard_EXPORT PrsMgr_PresentationManager3d (const Handle(Graphic3d_StructureManager)&aStructureManager)
 Creates a framework to manage displays and graphic
entities with the 3D view aStructureManager.
.
virtual Standard_EXPORT Standard_Boolean Is3D () const
Standard_EXPORT 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.
.
Standard_EXPORT void BoundBox (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0)
 highlights the boundbox of the presentation

Standard_EXPORT void BeginDraw ()
 initializes the list of Prs to be displayed in transient mode

Standard_EXPORT 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.

Standard_EXPORT 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.
.
Standard_EXPORT void Connect (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Handle(PrsMgr_PresentableObject)&anOtherObject, const Standard_Integer aMode=0, const Standard_Integer anOtherMode=0)
Standard_EXPORT 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.
.
Standard_EXPORT 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.
.
Standard_EXPORT 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.
.
Standard_EXPORT 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.
.
Standard_EXPORT 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.

Standard_EXPORT 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.

Standard_EXPORT Handle_PrsMgr_Presentation3d CastPresentation (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0) const
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Member Functions

Standard_EXPORT Handle_PrsMgr_Presentation newPresentation (const Handle(PrsMgr_PresentableObject)&aPresentableObject)
 Creates a new presentation in the presentation manager.
.

Private Attributes

Handle_Graphic3d_StructureManager myStructureManager
TColStd_ListOfTransient myStrList

Constructor & Destructor Documentation

Standard_EXPORT PrsMgr_PresentationManager3d::PrsMgr_PresentationManager3d const Handle(Graphic3d_StructureManager)&  aStructureManager  ) 
 


Member Function Documentation

Standard_EXPORT void PrsMgr_PresentationManager3d::AddToImmediateList const Handle(Prs3d_Presentation)&  aPrs  ) 
 

Standard_EXPORT void PrsMgr_PresentationManager3d::BeginDraw  )  [virtual]
 

Reimplemented from PrsMgr_PresentationManager.

Standard_EXPORT void PrsMgr_PresentationManager3d::BoundBox const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Standard_Integer  aMode = 0
 

Standard_EXPORT Handle_PrsMgr_Presentation3d PrsMgr_PresentationManager3d::CastPresentation const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Standard_Integer  aMode = 0
const
 

Standard_EXPORT void PrsMgr_PresentationManager3d::Color const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Quantity_NameOfColor  aColor = Quantity_NOC_YELLOW,
const Standard_Integer  aMode = 0
 

Standard_EXPORT void PrsMgr_PresentationManager3d::Connect const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Handle(PrsMgr_PresentableObject)&  anOtherObject,
const Standard_Integer  aMode = 0,
const Standard_Integer  anOtherMode = 0
 

Standard_EXPORT void PrsMgr_PresentationManager3d::EndDraw const Handle(Viewer_View)&  aView,
const Standard_Boolean  DoubleBuffer = Standard_False
[virtual]
 

Implements PrsMgr_PresentationManager.

Standard_EXPORT const PrsMgr_PresentationManager3d::Handle Standard_Type   )  const
 

Reimplemented from PrsMgr_PresentationManager.

virtual Standard_EXPORT Standard_Boolean PrsMgr_PresentationManager3d::Is3D  )  const [virtual]
 

Implements PrsMgr_PresentationManager.

Standard_EXPORT 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
 

Standard_EXPORT void PrsMgr_PresentationManager3d::Multiply const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Handle(Geom_Transformation)&  aTransformation,
const Standard_Integer  aMode = 0
 

Standard_EXPORT Handle_PrsMgr_Presentation PrsMgr_PresentationManager3d::newPresentation const Handle(PrsMgr_PresentableObject)&  aPresentableObject  )  [private, virtual]
 

Implements PrsMgr_PresentationManager.

Standard_EXPORT 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
 

Standard_EXPORT void PrsMgr_PresentationManager3d::SetShadingAspect const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Handle(Prs3d_ShadingAspect)&  aShadingAspect,
const Standard_Integer  aMode = 0
 

Standard_EXPORT 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
 

Standard_EXPORT void PrsMgr_PresentationManager3d::Transform const Handle(PrsMgr_PresentableObject)&  aPresentableObject,
const Handle(Geom_Transformation)&  aTransformation,
const Standard_Integer  aMode = 0
 


Field Documentation

TColStd_ListOfTransient PrsMgr_PresentationManager3d::myStrList [private]
 

Handle_Graphic3d_StructureManager PrsMgr_PresentationManager3d::myStructureManager [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:56:09 2008 for OpenCASCADE by  doxygen 1.4.1