# Visualization
TKV3d
PrsMgr

# PrsMgr_PresentationManager2d Class Reference

A framework to manage 2D displays, graphic entities
and their updates. Plotters, Highlights, Minima
maxima, immediate display (of transient graphic data???].
.

`#include <PrsMgr_PresentationManager2d.hxx>`

Inheritance diagram for PrsMgr_PresentationManager2d:

[legend]

## Public Member Functions

Standard_EXPORT | PrsMgr_PresentationManager2d (const Handle(Graphic2d_View)&aStructureManager)
| Creates a framework to manage displays and graphic entities with the 2D view aStructureManager. .
Standard_EXPORT Standard_Boolean | Is3D () const
Standard_EXPORT void | ColorHighlight (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer anIndex, const Standard_Integer aMode=0)
| Highlights the graphic object aPresentableObject in color by the color index anIndex. aPresentableObject has the display mode aMode. .
Standard_EXPORT void | EnablePlot (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0)
| Allows the drawing on a plotter of the graphic object aPresentableObject with the display mode aMode. .
Standard_EXPORT void | DisablePlot (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0)
| Forbids the drawing on a plotter of the graphic object aPresentableObject with the display mode aMode. .
Standard_EXPORT Standard_Boolean | IsPlottable (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0) const
| Returns Standard_True if the graphic object <me> is plottable, Standard_False if not. .
Standard_EXPORT void | SetOffset (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer anOffset, const Standard_Integer aMode=0)
| Specifies an Offset applied to the original color index of all primitives in the graphic object <me>. Warning: To reset the real color of the primitives you have to call this method with <anoffset> = 0. .
Standard_EXPORT Standard_Integer | Offset (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0) const
| Returns the Offset applied to the original color index of all primitives in the graphic object <me>. .
Standard_EXPORT void | InitMinMax ()
| Initializes a list of 2D objects for which minima and maxima will be calculated. .
Standard_EXPORT void | AddMinMax (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0)
| Appends the graphic object aPresentableObject with the display mode aMode to the list of objects for which minima and maxima will be calculated. .
Standard_EXPORT void | MinMax (Standard_Real &MinX, Standard_Real &MaxX, Standard_Real &MinY, Standard_Real &MaxY) const
| Returns the minima and maxima for all the graphic objects listed by the AddMinMax function. .
Standard_EXPORT void | SetHighlightColor (const Standard_Integer anIndex)
| Sets the highlight color index anIndex. .
Standard_EXPORT Handle_Graphic2d_View | StructureManager () const
| Returns the structure manager. .
Standard_EXPORT void | BeginDraw ()
| initializes the list of Prs to be displayed in transient mode
Standard_EXPORT void | AddToImmediateList (const Handle(Graphic2d_GraphicObject)&aGO)
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 | Dump (const Handle(Graphic2d_Buffer)&aBuffer, const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0)
| Dumps the Graphic Primitives of the PresentatbleObject in the buffer .
Standard_EXPORT Handle_PrsMgr_Presentation2d | CastPresentation (const Handle(PrsMgr_PresentableObject)&aPresentableObject, const Standard_Integer aMode=0) const
Standard_EXPORT Handle_PrsMgr_Presentation | newPresentation (const Handle(PrsMgr_PresentableObject)&aPresentableObject)
| Creates a new presentation in the presentation manager. .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Attributes

Handle_Graphic2d_View | myStructureManager
Handle_Graphic2d_DisplayList | MinMaxList
Handle_Graphic2d_TransientManager | myTM
TColStd_ListOfTransient | myGOList

## Constructor & Destructor Documentation

Standard_EXPORT PrsMgr_PresentationManager2d::PrsMgr_PresentationManager2d | ( | const Handle(Graphic2d_View)& | aStructureManager | ) |

## Member Function Documentation

Standard_EXPORT void PrsMgr_PresentationManager2d::AddMinMax | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void PrsMgr_PresentationManager2d::AddToImmediateList | ( | const Handle(Graphic2d_GraphicObject)& | aGO | ) |

Standard_EXPORT void PrsMgr_PresentationManager2d::BeginDraw | ( |  | ) | `[virtual]`

| Reimplemented from PrsMgr_PresentationManager.

Standard_EXPORT Handle_PrsMgr_Presentation2d PrsMgr_PresentationManager2d::CastPresentation | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) | const

Standard_EXPORT void PrsMgr_PresentationManager2d::ColorHighlight | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | anIndex,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void PrsMgr_PresentationManager2d::DisablePlot | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void PrsMgr_PresentationManager2d::Dump | ( | const Handle(Graphic2d_Buffer)& | aBuffer,
|  | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT void PrsMgr_PresentationManager2d::EnablePlot | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) |

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

| Implements PrsMgr_PresentationManager.

Standard_EXPORT const PrsMgr_PresentationManager2d::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from PrsMgr_PresentationManager.

Standard_EXPORT void PrsMgr_PresentationManager2d::InitMinMax | ( |  | ) |

Standard_EXPORT Standard_Boolean PrsMgr_PresentationManager2d::Is3D | ( |  | ) | const`[virtual]`

| Implements PrsMgr_PresentationManager.

Standard_EXPORT Standard_Boolean PrsMgr_PresentationManager2d::IsPlottable | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) | const

Standard_EXPORT void PrsMgr_PresentationManager2d::MinMax | ( | Standard_Real & | MinX,
|  | Standard_Real & | MaxX,
|  | Standard_Real & | MinY,
|  | Standard_Real & | MaxY
| ) | const

Standard_EXPORT Handle_PrsMgr_Presentation PrsMgr_PresentationManager2d::newPresentation | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject | ) | `[virtual]`

| Implements PrsMgr_PresentationManager.

Standard_EXPORT Standard_Integer PrsMgr_PresentationManager2d::Offset | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | aMode = `0`
| ) | const

Standard_EXPORT void PrsMgr_PresentationManager2d::SetHighlightColor | ( | const Standard_Integer | anIndex | ) |

Standard_EXPORT void PrsMgr_PresentationManager2d::SetOffset | ( | const Handle(PrsMgr_PresentableObject)& | aPresentableObject,
|  | const Standard_Integer | anOffset,
|  | const Standard_Integer | aMode = `0`
| ) |

Standard_EXPORT Handle_Graphic2d_View PrsMgr_PresentationManager2d::StructureManager | ( |  | ) | const

## Field Documentation

Handle_Graphic2d_DisplayList PrsMgr_PresentationManager2d::MinMaxList `[private]`

TColStd_ListOfTransient PrsMgr_PresentationManager2d::myGOList `[private]`

Handle_Graphic2d_View PrsMgr_PresentationManager2d::myStructureManager `[private]`

Handle_Graphic2d_TransientManager PrsMgr_PresentationManager2d::myTM `[private]`

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

- PrsMgr_PresentationManager2d.hxx