API Reference > OdDg Classes > OdDgView Class
OdDgView Class
OdDgViewOdDgViewOdDgViewOdDgView
Syntax
C++
class OdDgView : public OdDgElement, public OdDgViewAsPerspectiveCamera, public OdDgViewAsOrthography;

DgView.h

  1. There are 2 alternatives: parallel views and perspective views (virtual camera).
  2. The methods related to camera are available only when camera is on (getUseCameraFlag() == true).
  3. This class does not care about translation between parameters if the modes are switched.

 

Corresponding C++ library: TG_Db 

 

 
Name 
Description 
 
 
 
Name 
Description 
 
add 
to support its complexity; indeed, the only sub-element is level mask (to mask some levels by this view) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
distance from the camera to its back (far) clipping plane 
 
focal length 
 
distance from the camera to its front (near) clipping plane 
 
camera lens angle 
 
implementation of OdDgViewAsPerspectiveCamera 
 
rotation 
 
this defines the visible rectangle at the focal plane 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
for unnamed view, that index stands for its index within hosting view group 
 
 
 
any view should refer to the model it displays 
 
 
 
 
 
 
 
distance from the camera to its back (far) clipping plane 
 
distance from the camera to its front (near) clipping plane 
 
eye point 
 
rotation 
 
implementation of OdDgViewAsOrthography 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
any view is either in orthography mode (methods of OdDgViewAsOrthography are available) or camera mode (OdDgViewAsPerspectiveCamera) 
 
 
 
 
 
 
 
physical rectangle at the screen 
 
 
 
binary flags about how to display some specific things 
 
 
 
 
 
 
 
any view is either named or owned to some view group (8 views per 1 group) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.