# Visualization
TKV3d
Visual3d

# Visual3d_ViewManager Class Reference

This class allows the definition of a manager to
which the views are associated.
It allows them to be globally manipulated.
It activates the pick.
.

`#include <Visual3d_ViewManager.hxx>`

Inheritance diagram for Visual3d_ViewManager:

[legend]

## Public Member Functions

Standard_EXPORT | Visual3d_ViewManager (const Handle(Aspect_GraphicDevice)&aDevice)
| Creates a 3D visualizer. .
Standard_EXPORT void | Activate ()
| Activates all the views of the manager <me>. .
Standard_EXPORT void | Deactivate ()
| Deactivates all the views of the manager <me>. .
virtual Standard_EXPORT void | Destroy ()
| Deletes and erases the 3D visualiser <me>. .
| ~Visual3d_ViewManager ()
Standard_EXPORT void | Erase ()
| Erases all of the structures displayed in the visualiser <me>. .
Standard_EXPORT void | Redraw () const
| Redraws all the displayed structures. .
Standard_EXPORT void | Remove ()
| Deletes and erases the 3D visualiser <me>. .
Standard_EXPORT void | Update () const
| Updates screen in function of modifications of the structures. Category: Methods to modify the class definition Warning: Not necessary if the update mode is TOU_ASAP. .
Standard_EXPORT Handle_Visual3d_HSetOfView | ActivatedView () const
| Returns the group of views activated in the visualiser <me>. .
Standard_EXPORT void | ConvertCoord (const Handle(Aspect_Window)&AWindow, const Graphic3d_Vertex &AVertex, Standard_Integer &AU, Standard_Integer &AV) const
| Applies the view orientation transformation, the view mapping transformation and view clip, the display transformation to the vertex <avertex>. Returns the pixel coordinates <au>, <av>. Warning: Returns <au> = <av> = IntegerLast () if the evaluation is impossible. -- Bad Window, Numeric error... .
Standard_EXPORT Graphic3d_Vertex | ConvertCoord (const Handle(Aspect_Window)&AWindow, const Standard_Integer AU, const Standard_Integer AV) const
| Applies the inverse of the display transformation, the inverse of the view mapping transformation and view clip, the inverse of the view orientation transformation to the pixel coordinates <au>, <av>. Returns the world coordinates <avertex>. Warning: Returns AVertex (X, Y, Z) with X = Y = Z = RealLast () if the evaluation is impossible. -- Bad Window, Numeric error... .
Standard_EXPORT void | ConvertCoordWithProj (const Handle(Aspect_Window)&AWindow, const Standard_Integer AU, const Standard_Integer AV, Graphic3d_Vertex &Point, Graphic3d_Vector &Proj) const

Applies the inverse of the display transformation, the
inverse of the view mapping transformation and view clip,
the inverse of the view orientation transformation to
the pixel coordinates <au>, <av>.
Returns the world coordinates <avertex> and projection ray <avector>.
Warning: Returns AVertex (X, Y, Z) with X = Y = Z = RealLast () and
AVector (VX, VY, VZ) with VX = VY = VZ = 0.
if the evaluation is impossible.
-- Bad Window, Numeric error...
.

Standard_EXPORT Handle_Visual3d_HSetOfView | DefinedView () const
| Returns the group of views defined in the visualiser <me>. .
Standard_EXPORT Standard_Integer | MaxNumOfViews () const
| Returns the theoretical maximum number of definable views in the view manager <me>. Warning: It's not possible to accept an infinite number of definable views because each view must have an identification and we have different view managers. .
Standard_EXPORT Standard_Integer | Identification (const Handle(Visual3d_View)&AView)
| Returns : a new identification number for a new view in the visualiser. .
Standard_EXPORT Visual3d_PickDescriptor | Pick (const Visual3d_ContextPick &CTX, const Handle(Aspect_Window)&AWindow, const Standard_Integer AX, const Standard_Integer AY)
| Returns a graphic pick with the pick context <ctx> at the coordinates <ax>, <ay> in the window <awindow>. .
Standard_EXPORT Handle_Graphic3d_Structure | Identification (const Standard_Integer AId) const
| Returns the structure with the identification number <aid>. .
Standard_EXPORT Standard_Integer | Identification () const
| Returns the identification number of the visualiser. .
Standard_EXPORT void | ChangeDisplayPriority (const Handle(Graphic3d_Structure)&AStructure, const Standard_Integer OldPriority, const Standard_Integer NewPriority)
| Changes the display priority of the structure <astructure>. .
Standard_EXPORT void | Clear (const Handle(Graphic3d_Structure)&AStructure, const Standard_Boolean WithDestruction)
| Clears the structure <astructure>. .
Standard_EXPORT void | Connect (const Handle(Graphic3d_Structure)&AMother, const Handle(Graphic3d_Structure)&ADaughter)
| Connects the structures <amother> and <adaughter>. .
Standard_EXPORT void | Disconnect (const Handle(Graphic3d_Structure)&AMother, const Handle(Graphic3d_Structure)&ADaughter)
| Disconnects the structures <amother> and <adaughter>. .
Standard_EXPORT void | Display (const Handle(Graphic3d_Structure)&AStructure)
| Display of the structure <astructure>. .
Standard_EXPORT void | Erase (const Handle(Graphic3d_Structure)&AStructure)
| Erases the structure <astructure>. .
Standard_EXPORT void | Highlight (const Handle(Graphic3d_Structure)&AStructure, const Aspect_TypeOfHighlightMethod AMethod)
| Highlights the structure <astructure>. .
Standard_EXPORT void | SetTransform (const Handle(Graphic3d_Structure)&AStructure, const TColStd_Array2OfReal &ATrsf)
| Transforms the structure <astructure>. .
Standard_EXPORT void | UnHighlight ()
| Suppress the highlighting on all the structures. .
Standard_EXPORT void | UnHighlight (const Handle(Graphic3d_Structure)&AStructure)
| Suppress the highlighting on the structure <astructure>. .
Standard_EXPORT Standard_Boolean | ViewExists (const Handle(Aspect_Window)&AWindow, Graphic3d_CView &TheCView) const
| Returns Standard_True if the view associated to the window <awindow> exists and is activated. <theviewid> contains the internal identification of the associated view. .
Standard_EXPORT const Handle_Visual3d_Layer & | UnderLayer () const
| Returns the underlay of the viewer <me>. .
Standard_EXPORT const Handle_Visual3d_Layer & | OverLayer () const
| Returns the underlay of the viewer <me>. .
Standard_EXPORT void | ReCompute (const Handle(Graphic3d_Structure)&AStructure)
| Forces a new construction of the structure <astructure> if <astructure> is displayed and TOS_COMPUTED. .
Standard_EXPORT void | ReCompute (const Handle(Graphic3d_Structure)&AStructure, const Handle(Graphic3d_DataStructureManager)&AProjector)
| Forces a new construction of the structure <astructure> if <astructure> is displayed in <aprojector> and TOS_COMPUTED. .
Standard_EXPORT Standard_Boolean | Transparency () const
| Returns Standard_True if the transparency is activated in all activated views. Default Standard_False .
Standard_EXPORT void | SetTransparency (const Standard_Boolean AFlag)
| if <aflag> is Standard_True then the transparency is managed. Default Standard_False
Standard_EXPORT Standard_Boolean | ZBufferAuto () const
| Returns Standard_True if the zbuffer activity is managed automatically. Default Standard_False .
Standard_EXPORT void | SetZBufferAuto (const Standard_Boolean AFlag)
| if <aflag> is Standard_True then the zbuffer activity is managed automatically. Default Standard_False
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Member Functions

Standard_EXPORT void | SetLayer (const Handle(Visual3d_Layer)&ALayer)
| Adds a new layer in all the views of <me>. .

## Private Attributes

Visual3d_SetOfView | MyDefinedView
Handle_Visual3d_Layer | MyUnderLayer
Handle_Visual3d_Layer | MyOverLayer
Aspect_GenId | MyViewGenId
Handle_Graphic3d_GraphicDriver | MyGraphicDriver
Standard_Boolean | MyZBufferAuto
Standard_Boolean | MyTransparency

## Constructor & Destructor Documentation

Standard_EXPORT Visual3d_ViewManager::Visual3d_ViewManager | ( | const Handle(Aspect_GraphicDevice)& | aDevice | ) |

Visual3d_ViewManager::~Visual3d_ViewManager | ( |  | ) | `[inline]`

## Member Function Documentation

Standard_EXPORT void Visual3d_ViewManager::Activate | ( |  | ) |

Standard_EXPORT Handle_Visual3d_HSetOfView Visual3d_ViewManager::ActivatedView | ( |  | ) | const

Standard_EXPORT void Visual3d_ViewManager::ChangeDisplayPriority | ( | const Handle(Graphic3d_Structure)& | AStructure,
|  | const Standard_Integer | OldPriority,
|  | const Standard_Integer | NewPriority
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Clear | ( | const Handle(Graphic3d_Structure)& | AStructure,
|  | const Standard_Boolean | WithDestruction
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Connect | ( | const Handle(Graphic3d_Structure)& | AMother,
|  | const Handle(Graphic3d_Structure)& | ADaughter
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT Graphic3d_Vertex Visual3d_ViewManager::ConvertCoord | ( | const Handle(Aspect_Window)& | AWindow,
|  | const Standard_Integer | AU,
|  | const Standard_Integer | AV
| ) | const

Standard_EXPORT void Visual3d_ViewManager::ConvertCoord | ( | const Handle(Aspect_Window)& | AWindow,
|  | const Graphic3d_Vertex & | AVertex,
|  | Standard_Integer & | AU,
|  | Standard_Integer & | AV
| ) | const

Standard_EXPORT void Visual3d_ViewManager::ConvertCoordWithProj | ( | const Handle(Aspect_Window)& | AWindow,
|  | const Standard_Integer | AU,
|  | const Standard_Integer | AV,
|  | Graphic3d_Vertex & | Point,
|  | Graphic3d_Vector & | Proj
| ) | const

Standard_EXPORT void Visual3d_ViewManager::Deactivate | ( |  | ) |

Standard_EXPORT Handle_Visual3d_HSetOfView Visual3d_ViewManager::DefinedView | ( |  | ) | const

virtual Standard_EXPORT void Visual3d_ViewManager::Destroy | ( |  | ) | `[virtual]`

| Reimplemented from Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Disconnect | ( | const Handle(Graphic3d_Structure)& | AMother,
|  | const Handle(Graphic3d_Structure)& | ADaughter
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Display | ( | const Handle(Graphic3d_Structure)& | AStructure | ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Erase | ( | const Handle(Graphic3d_Structure)& | AStructure | ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Erase | ( |  | ) |

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

| Reimplemented from Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Highlight | ( | const Handle(Graphic3d_Structure)& | AStructure,
|  | const Aspect_TypeOfHighlightMethod | AMethod
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT Standard_Integer Visual3d_ViewManager::Identification | ( |  | ) | const`[virtual]`

| Reimplemented from Graphic3d_StructureManager.

Standard_EXPORT Handle_Graphic3d_Structure Visual3d_ViewManager::Identification | ( | const Standard_Integer | AId | ) | const`[virtual]`

| Reimplemented from Graphic3d_StructureManager.

Standard_EXPORT Standard_Integer Visual3d_ViewManager::Identification | ( | const Handle(Visual3d_View)& | AView | ) |

Standard_EXPORT Standard_Integer Visual3d_ViewManager::MaxNumOfViews | ( |  | ) | const

Standard_EXPORT const Handle_Visual3d_Layer& Visual3d_ViewManager::OverLayer | ( |  | ) | const

Standard_EXPORT Visual3d_PickDescriptor Visual3d_ViewManager::Pick | ( | const Visual3d_ContextPick & | CTX,
|  | const Handle(Aspect_Window)& | AWindow,
|  | const Standard_Integer | AX,
|  | const Standard_Integer | AY
| ) |

Standard_EXPORT void Visual3d_ViewManager::ReCompute | ( | const Handle(Graphic3d_Structure)& | AStructure,
|  | const Handle(Graphic3d_DataStructureManager)& | AProjector
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::ReCompute | ( | const Handle(Graphic3d_Structure)& | AStructure | ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Redraw | ( |  | ) | const

Standard_EXPORT void Visual3d_ViewManager::Remove | ( |  | ) |

Standard_EXPORT void Visual3d_ViewManager::SetLayer | ( | const Handle(Visual3d_Layer)& | ALayer | ) | `[private]`

Standard_EXPORT void Visual3d_ViewManager::SetTransform | ( | const Handle(Graphic3d_Structure)& | AStructure,
|  | const TColStd_Array2OfReal & | ATrsf
| ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::SetTransparency | ( | const Standard_Boolean | AFlag | ) |

Standard_EXPORT void Visual3d_ViewManager::SetZBufferAuto | ( | const Standard_Boolean | AFlag | ) |

Standard_EXPORT Standard_Boolean Visual3d_ViewManager::Transparency | ( |  | ) | const

Standard_EXPORT const Handle_Visual3d_Layer& Visual3d_ViewManager::UnderLayer | ( |  | ) | const

Standard_EXPORT void Visual3d_ViewManager::UnHighlight | ( | const Handle(Graphic3d_Structure)& | AStructure | ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::UnHighlight | ( |  | ) | `[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT void Visual3d_ViewManager::Update | ( |  | ) | const`[virtual]`

| Implements Graphic3d_StructureManager.

Standard_EXPORT Standard_Boolean Visual3d_ViewManager::ViewExists | ( | const Handle(Aspect_Window)& | AWindow,
|  | Graphic3d_CView & | TheCView
| ) | const

Standard_EXPORT Standard_Boolean Visual3d_ViewManager::ZBufferAuto | ( |  | ) | const

## Field Documentation

Visual3d_SetOfView Visual3d_ViewManager::MyDefinedView `[private]`

Handle_Graphic3d_GraphicDriver Visual3d_ViewManager::MyGraphicDriver `[private]`

Handle_Visual3d_Layer Visual3d_ViewManager::MyOverLayer `[private]`

Standard_Boolean Visual3d_ViewManager::MyTransparency `[private]`

Handle_Visual3d_Layer Visual3d_ViewManager::MyUnderLayer `[private]`

Aspect_GenId Visual3d_ViewManager::MyViewGenId `[private]`

Standard_Boolean Visual3d_ViewManager::MyZBufferAuto `[private]`

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

- Visual3d_ViewManager.hxx