QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Viewport Class Reference

#include <opennurbs_viewport.h>

Inheritance diagram for ON_Viewport:
ON_Geometry ON_Object

Public Member Functions

ON_3dVector CameraDirection () const
 
bool CameraDirectionIsLocked () const
 
ON_3dPoint CameraLocation () const
 
bool CameraLocationIsLocked () const
 
ON_3dVector CameraUp () const
 
bool CameraUpIsLocked () const
 
ON_3dVector CameraX () const
 
ON_3dVector CameraY () const
 
ON_3dVector CameraZ () const
 
bool ChangeToParallelProjection (bool bSymmetricFrustum)
 
bool ChangeToPerspectiveProjection (double target_distance, bool bSymmetricFrustum, double lens_length)
 
bool ChangeToSymmetricFrustum (bool bLeftRightSymmetric, bool bTopBottomSymmetric, double target_distance)
 
bool ChangeToTwoPointPerspectiveProjection (double target_distance, ON_3dVector up, double lens_length)
 
void ChangeViewportId (const ON_UUID &viewport_id)
 
ON_Xform ClipModInverseXform () const
 
ON_Xform ClipModXform () const
 
bool ClipModXformIsIdentity () const
 
int Dimension () const
 
bool DollyCamera (const ON_3dVector &dolly_vector)
 
bool DollyFrustum (double dolly_distance)
 
void Dump (ON_TextLog &) const
 
bool Extents (double half_view_angle, const ON_3dPoint &center, double radius)
 
bool Extents (double half_view_angle, const ON_BoundingBox &world_bbox)
 
double FrustumBottom () const
 
ON_3dPoint FrustumCenterPoint (double target_distance) const
 
double FrustumFar () const
 
double FrustumHeight () const
 
bool FrustumIsLeftRightSymmetric () const
 
bool FrustumIsTopBottomSymmetric () const
 
double FrustumLeft () const
 
double FrustumMaximumDiameter () const
 
double FrustumMinimumDiameter () const
 
double FrustumNear () const
 
double FrustumRight () const
 
double FrustumTop () const
 
double FrustumWidth () const
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
bool GetBoundingBoxDepth (ON_BoundingBox bbox, double *near_dist, double *far_dist, bool bGrowNearFar=false) const
 
bool GetCamera35mmLenseLength (double *lens_length) const
 
bool GetCamera35mmLensLength (double *lens_length) const
 
bool GetCameraAngle (double *half_diagonal_angle, double *half_vertical_angle, double *half_horizontal_angle) const
 
bool GetCameraAngle (double *half_smallest_angle) const
 
bool GetCameraExtents (const ON_BoundingBox &, ON_BoundingBox &cambbox, int bGrowBox=false) const
 
bool GetCameraExtents (int, int, const double *, ON_BoundingBox &cambbox, int bGrowBox=false) const
 
bool GetCameraExtents (ON_3dPoint &, double, ON_BoundingBox &cambox, int bGrowBox=false) const
 
bool GetCameraFrame (double *, double *, double *, double *) const
 
bool GetCoordinateSprite (int, int, int, int[3], double[3][2]) const
 
bool GetDollyCameraVector (int screen_x0, int screen_y0, int screen_x1, int screen_y1, double proj_plane_dist, ON_3dVector &dolly_vector) const
 
bool GetFarPlane (ON_Plane &far_plane) const
 
bool GetFarRect (ON_3dPoint &left_bottom, ON_3dPoint &right_bottom, ON_3dPoint &left_top, ON_3dPoint &right_top) const
 
bool GetFrustum (double *left, double *right, double *bottom, double *top, double *near_dist=NULL, double *far_dist=NULL) const
 
bool GetFrustumAspect (double &) const
 
bool GetFrustumBottomPlane (ON_Plane &bottom_plane) const
 
bool GetFrustumCenter (double *) const
 
bool GetFrustumLeftPlane (ON_Plane &left_plane) const
 
bool GetFrustumLine (double screenx, double screeny, ON_Line &world_line) const
 
bool GetFrustumRightPlane (ON_Plane &right_plane) const
 
bool GetFrustumTopPlane (ON_Plane &top_plane) const
 
bool GetNearPlane (ON_Plane &near_plane) const
 
bool GetNearRect (ON_3dPoint &left_bottom, ON_3dPoint &right_bottom, ON_3dPoint &left_top, ON_3dPoint &right_top) const
 
bool GetPointDepth (ON_3dPoint point, double *near_dist, double *far_dist, bool bGrowNearFar=false) const
 
bool GetScreenPort (int *left, int *right, int *port_bottom, int *port_top, int *port_near=NULL, int *port_far=NULL) const
 
bool GetScreenPortAspect (double &) const
 
bool GetSphereDepth (ON_Sphere sphere, double *near_dist, double *far_dist, bool bGrowNearFar=false) const
 
void GetViewScale (double *x, double *y) const
 
bool GetWorldToScreenScale (const ON_3dPoint &point_in_frustum, double *pixels_per_unit) const
 
bool GetXform (ON::coordinate_system srcCS, ON::coordinate_system destCS, ON_Xform &matrix) const
 
void Initialize ()
 
bool IsCameraFrameWorldPlan (int *, int *, int *)
 
bool IsParallelProjection () const
 
bool IsPerspectiveProjection () const
 
bool IsTwoPointPerspectiveProjection () const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
bool IsValidCamera () const
 
bool IsValidFrustum () const
 
double MinNearOverFar () const
 
 ON_Viewport ()
 
ON_Viewportoperator= (const ON_Viewport &)
 
double PerspectiveMinNearDist () const
 
double PerspectiveMinNearOverFar () const
 
ON::view_projection Projection () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
bool SetCamera35mmLenseLength (double lens_length)
 
bool SetCamera35mmLensLength (double lens_length)
 
bool SetCameraAngle (double half_smallest_angle)
 
bool SetCameraDirection (const ON_3dVector &)
 
void SetCameraDirectionLock (bool bLockCameraDirection)
 
bool SetCameraLocation (const ON_3dPoint &)
 
void SetCameraLocationLock (bool bLockCameraLocation)
 
bool SetCameraUp (const ON_3dVector &)
 
void SetCameraUpLock (bool bLockCameraUp)
 
bool SetFrustum (double left, double right, double bottom, double top, double near_dist, double far_dist)
 
bool SetFrustumAspect (double)
 
void SetFrustumLeftRightSymmetry (bool bForceLeftRightSymmetry)
 
bool SetFrustumNearFar (const double *bboxmin, const double *bboxmax)
 
bool SetFrustumNearFar (const double *center, double radius)
 
bool SetFrustumNearFar (double near_dist, double far_dist)
 
bool SetFrustumNearFar (double near_dist, double far_dist, double min_near_dist, double min_near_over_far, double target_dist)
 
void SetFrustumTopBottomSymmetry (bool bForceTopBottomSymmetry)
 
void SetMinNearOverFar (double)
 
void SetPerspectiveMinNearDist (double min_near_dist)
 
void SetPerspectiveMinNearOverFar (double min_near_over_far)
 
bool SetProjection (ON::view_projection projection)
 
bool SetScreenPort (int port_left, int port_right, int port_bottom, int port_top, int port_near=0, int port_far=0)
 
bool SetTargetPoint (ON_3dPoint target_point)
 
bool SetViewportId (const ON_UUID &viewport_id)
 
bool SetViewScale (double x, double y)
 
double TargetDistance (bool bUseFrustumCenterFallback) const
 
ON_3dPoint TargetPoint () const
 
ON_BOOL32 Transform (const ON_Xform &)
 
void UnlockCamera ()
 
void UnlockFrustumSymmetry ()
 
ON_UUID ViewportId (void) const
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
bool ZoomToScreenRect (int screen_x0, int screen_y0, int screen_x1, int screen_y1)
 
 ~ON_Viewport ()
 
- Public Member Functions inherited from ON_Geometry
ON_BoundingBox BoundingBox () const
 
virtual ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual void ClearBoundingBox ()
 
virtual ON_COMPONENT_INDEX ComponentIndex () const
 
virtual bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
virtual bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
virtual ON_BOOL32 HasBrepForm () const
 
virtual bool IsDeformable () const
 
virtual bool IsMorphable () const
 
virtual bool MakeDeformable ()
 
virtual bool Morph (const ON_SpaceMorph &morph)
 
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Scale (double scale_factor)
 
virtual ON_BOOL32 SwapCoordinates (int i, int j)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
virtual ~ON_Geometry ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
virtual ON::object_type ObjectType () const
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
virtual unsigned int SizeOf () const
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Static Public Attributes

static const ON_3dVector Default3dCameraDirection
 

Protected Attributes

bool m_bLockCamDir
 
bool m_bLockCamLoc
 
bool m_bLockCamUp
 
bool m_bValidCamera
 
bool m_bValidFrustum
 
bool m_bValidPort
 
ON_3dVector m_CamDir
 
ON_3dPoint m_CamLoc
 
ON_3dVector m_CamUp
 
ON_3dVector m_CamX
 
ON_3dVector m_CamY
 
ON_3dVector m_CamZ
 
double m_frus_bottom
 
double m_frus_far
 
double m_frus_left
 
double m_frus_near
 
double m_frus_right
 
double m_frus_top
 
unsigned char m_frustum_symmetry_flags
 
int m_port_bottom
 
int m_port_far
 
int m_port_left
 
int m_port_near
 
int m_port_right
 
int m_port_top
 
ON::view_projection m_projection
 
unsigned char m_reserved1
 
ON_3dPoint m_target_point
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_Viewport)
 
bool SetCameraFrame ()
 
bool SetClipModXform (ON_Xform clip_mod_xform)
 

Private Attributes

double m__MIN_NEAR_DIST
 
double m__MIN_NEAR_OVER_FAR
 
ON_Xform m_clip_mods
 
ON_Xform m_clip_mods_inverse
 
ON_UUID m_viewport_id
 

Additional Inherited Members

- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Constructor & Destructor Documentation

◆ ON_Viewport()

ON_Viewport::ON_Viewport ( )

◆ ~ON_Viewport()

ON_Viewport::~ON_Viewport ( )

Member Function Documentation

◆ CameraDirection()

ON_3dVector ON_Viewport::CameraDirection ( ) const

◆ CameraDirectionIsLocked()

bool ON_Viewport::CameraDirectionIsLocked ( ) const

◆ CameraLocation()

ON_3dPoint ON_Viewport::CameraLocation ( ) const

◆ CameraLocationIsLocked()

bool ON_Viewport::CameraLocationIsLocked ( ) const

◆ CameraUp()

ON_3dVector ON_Viewport::CameraUp ( ) const

◆ CameraUpIsLocked()

bool ON_Viewport::CameraUpIsLocked ( ) const

◆ CameraX()

ON_3dVector ON_Viewport::CameraX ( ) const

◆ CameraY()

ON_3dVector ON_Viewport::CameraY ( ) const

◆ CameraZ()

ON_3dVector ON_Viewport::CameraZ ( ) const

◆ ChangeToParallelProjection()

bool ON_Viewport::ChangeToParallelProjection ( bool bSymmetricFrustum)

◆ ChangeToPerspectiveProjection()

bool ON_Viewport::ChangeToPerspectiveProjection ( double target_distance,
bool bSymmetricFrustum,
double lens_length )

◆ ChangeToSymmetricFrustum()

bool ON_Viewport::ChangeToSymmetricFrustum ( bool bLeftRightSymmetric,
bool bTopBottomSymmetric,
double target_distance )

◆ ChangeToTwoPointPerspectiveProjection()

bool ON_Viewport::ChangeToTwoPointPerspectiveProjection ( double target_distance,
ON_3dVector up,
double lens_length )

◆ ChangeViewportId()

void ON_Viewport::ChangeViewportId ( const ON_UUID & viewport_id)

◆ ClipModInverseXform()

ON_Xform ON_Viewport::ClipModInverseXform ( ) const

◆ ClipModXform()

ON_Xform ON_Viewport::ClipModXform ( ) const

◆ ClipModXformIsIdentity()

bool ON_Viewport::ClipModXformIsIdentity ( ) const

◆ Dimension()

int ON_Viewport::Dimension ( ) const
virtual

Implements ON_Geometry.

◆ DollyCamera()

bool ON_Viewport::DollyCamera ( const ON_3dVector & dolly_vector)

◆ DollyFrustum()

bool ON_Viewport::DollyFrustum ( double dolly_distance)

◆ Dump()

void ON_Viewport::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ Extents() [1/2]

bool ON_Viewport::Extents ( double half_view_angle,
const ON_3dPoint & center,
double radius )

◆ Extents() [2/2]

bool ON_Viewport::Extents ( double half_view_angle,
const ON_BoundingBox & world_bbox )

◆ FrustumBottom()

double ON_Viewport::FrustumBottom ( ) const

◆ FrustumCenterPoint()

ON_3dPoint ON_Viewport::FrustumCenterPoint ( double target_distance) const

◆ FrustumFar()

double ON_Viewport::FrustumFar ( ) const

◆ FrustumHeight()

double ON_Viewport::FrustumHeight ( ) const

◆ FrustumIsLeftRightSymmetric()

bool ON_Viewport::FrustumIsLeftRightSymmetric ( ) const

◆ FrustumIsTopBottomSymmetric()

bool ON_Viewport::FrustumIsTopBottomSymmetric ( ) const

◆ FrustumLeft()

double ON_Viewport::FrustumLeft ( ) const

◆ FrustumMaximumDiameter()

double ON_Viewport::FrustumMaximumDiameter ( ) const

◆ FrustumMinimumDiameter()

double ON_Viewport::FrustumMinimumDiameter ( ) const

◆ FrustumNear()

double ON_Viewport::FrustumNear ( ) const

◆ FrustumRight()

double ON_Viewport::FrustumRight ( ) const

◆ FrustumTop()

double ON_Viewport::FrustumTop ( ) const

◆ FrustumWidth()

double ON_Viewport::FrustumWidth ( ) const

◆ GetBBox()

ON_BOOL32 ON_Viewport::GetBBox ( double * boxmin,
double * boxmax,
ON_BOOL32 bGrowBox = false ) const
virtual

Implements ON_Geometry.

◆ GetBoundingBoxDepth()

bool ON_Viewport::GetBoundingBoxDepth ( ON_BoundingBox bbox,
double * near_dist,
double * far_dist,
bool bGrowNearFar = false ) const

◆ GetCamera35mmLenseLength()

bool ON_Viewport::GetCamera35mmLenseLength ( double * lens_length) const

◆ GetCamera35mmLensLength()

bool ON_Viewport::GetCamera35mmLensLength ( double * lens_length) const

◆ GetCameraAngle() [1/2]

bool ON_Viewport::GetCameraAngle ( double * half_diagonal_angle,
double * half_vertical_angle,
double * half_horizontal_angle ) const

◆ GetCameraAngle() [2/2]

bool ON_Viewport::GetCameraAngle ( double * half_smallest_angle) const

◆ GetCameraExtents() [1/3]

bool ON_Viewport::GetCameraExtents ( const ON_BoundingBox & wbox,
ON_BoundingBox & cambbox,
int bGrowBox = false ) const

◆ GetCameraExtents() [2/3]

bool ON_Viewport::GetCameraExtents ( int count,
int stride,
const double * points,
ON_BoundingBox & cambbox,
int bGrowBox = false ) const

◆ GetCameraExtents() [3/3]

bool ON_Viewport::GetCameraExtents ( ON_3dPoint & worldSphereCenter,
double worldSphereRadius,
ON_BoundingBox & cambox,
int bGrowBox = false ) const

◆ GetCameraFrame()

bool ON_Viewport::GetCameraFrame ( double * CameraLocation,
double * CameraX,
double * CameraY,
double * CameraZ ) const

◆ GetCoordinateSprite()

bool ON_Viewport::GetCoordinateSprite ( int size,
int scrx,
int scry,
int indx[3],
double scr_coord[3][2] ) const

◆ GetDollyCameraVector()

bool ON_Viewport::GetDollyCameraVector ( int screen_x0,
int screen_y0,
int screen_x1,
int screen_y1,
double proj_plane_dist,
ON_3dVector & dolly_vector ) const

◆ GetFarPlane()

bool ON_Viewport::GetFarPlane ( ON_Plane & far_plane) const

◆ GetFarRect()

bool ON_Viewport::GetFarRect ( ON_3dPoint & left_bottom,
ON_3dPoint & right_bottom,
ON_3dPoint & left_top,
ON_3dPoint & right_top ) const

◆ GetFrustum()

bool ON_Viewport::GetFrustum ( double * left,
double * right,
double * bottom,
double * top,
double * near_dist = NULL,
double * far_dist = NULL ) const

◆ GetFrustumAspect()

bool ON_Viewport::GetFrustumAspect ( double & frustum_aspect) const

◆ GetFrustumBottomPlane()

bool ON_Viewport::GetFrustumBottomPlane ( ON_Plane & bottom_plane) const

◆ GetFrustumCenter()

bool ON_Viewport::GetFrustumCenter ( double * frus_center) const

◆ GetFrustumLeftPlane()

bool ON_Viewport::GetFrustumLeftPlane ( ON_Plane & left_plane) const

◆ GetFrustumLine()

bool ON_Viewport::GetFrustumLine ( double screenx,
double screeny,
ON_Line & world_line ) const

◆ GetFrustumRightPlane()

bool ON_Viewport::GetFrustumRightPlane ( ON_Plane & right_plane) const

◆ GetFrustumTopPlane()

bool ON_Viewport::GetFrustumTopPlane ( ON_Plane & top_plane) const

◆ GetNearPlane()

bool ON_Viewport::GetNearPlane ( ON_Plane & near_plane) const

◆ GetNearRect()

bool ON_Viewport::GetNearRect ( ON_3dPoint & left_bottom,
ON_3dPoint & right_bottom,
ON_3dPoint & left_top,
ON_3dPoint & right_top ) const

◆ GetPointDepth()

bool ON_Viewport::GetPointDepth ( ON_3dPoint point,
double * near_dist,
double * far_dist,
bool bGrowNearFar = false ) const

◆ GetScreenPort()

bool ON_Viewport::GetScreenPort ( int * left,
int * right,
int * port_bottom,
int * port_top,
int * port_near = NULL,
int * port_far = NULL ) const

◆ GetScreenPortAspect()

bool ON_Viewport::GetScreenPortAspect ( double & aspect) const

◆ GetSphereDepth()

bool ON_Viewport::GetSphereDepth ( ON_Sphere sphere,
double * near_dist,
double * far_dist,
bool bGrowNearFar = false ) const

◆ GetViewScale()

void ON_Viewport::GetViewScale ( double * x,
double * y ) const

◆ GetWorldToScreenScale()

bool ON_Viewport::GetWorldToScreenScale ( const ON_3dPoint & point_in_frustum,
double * pixels_per_unit ) const

◆ GetXform()

bool ON_Viewport::GetXform ( ON::coordinate_system srcCS,
ON::coordinate_system destCS,
ON_Xform & matrix ) const

◆ Initialize()

void ON_Viewport::Initialize ( )

◆ IsCameraFrameWorldPlan()

bool ON_Viewport::IsCameraFrameWorldPlan ( int * xindex,
int * yindex,
int * zindex )

◆ IsParallelProjection()

bool ON_Viewport::IsParallelProjection ( ) const

◆ IsPerspectiveProjection()

bool ON_Viewport::IsPerspectiveProjection ( ) const

◆ IsTwoPointPerspectiveProjection()

bool ON_Viewport::IsTwoPointPerspectiveProjection ( ) const

◆ IsValid()

ON_BOOL32 ON_Viewport::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ IsValidCamera()

bool ON_Viewport::IsValidCamera ( ) const

◆ IsValidFrustum()

bool ON_Viewport::IsValidFrustum ( ) const

◆ MinNearOverFar()

double ON_Viewport::MinNearOverFar ( ) const

◆ ON_OBJECT_DECLARE()

ON_Viewport::ON_OBJECT_DECLARE ( ON_Viewport )
private

◆ operator=()

ON_Viewport & ON_Viewport::operator= ( const ON_Viewport & src)

◆ PerspectiveMinNearDist()

double ON_Viewport::PerspectiveMinNearDist ( ) const

◆ PerspectiveMinNearOverFar()

double ON_Viewport::PerspectiveMinNearOverFar ( ) const

◆ Projection()

ON::view_projection ON_Viewport::Projection ( ) const

◆ Read()

ON_BOOL32 ON_Viewport::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ SetCamera35mmLenseLength()

bool ON_Viewport::SetCamera35mmLenseLength ( double lens_length)

◆ SetCamera35mmLensLength()

bool ON_Viewport::SetCamera35mmLensLength ( double lens_length)

◆ SetCameraAngle()

bool ON_Viewport::SetCameraAngle ( double half_smallest_angle)

◆ SetCameraDirection()

bool ON_Viewport::SetCameraDirection ( const ON_3dVector & v)

◆ SetCameraDirectionLock()

void ON_Viewport::SetCameraDirectionLock ( bool bLockCameraDirection)

◆ SetCameraFrame()

bool ON_Viewport::SetCameraFrame ( )
private

◆ SetCameraLocation()

bool ON_Viewport::SetCameraLocation ( const ON_3dPoint & p)

◆ SetCameraLocationLock()

void ON_Viewport::SetCameraLocationLock ( bool bLockCameraLocation)

◆ SetCameraUp()

bool ON_Viewport::SetCameraUp ( const ON_3dVector & v)

◆ SetCameraUpLock()

void ON_Viewport::SetCameraUpLock ( bool bLockCameraUp)

◆ SetClipModXform()

bool ON_Viewport::SetClipModXform ( ON_Xform clip_mod_xform)
private

◆ SetFrustum()

bool ON_Viewport::SetFrustum ( double left,
double right,
double bottom,
double top,
double near_dist,
double far_dist )

◆ SetFrustumAspect()

bool ON_Viewport::SetFrustumAspect ( double frustum_aspect)

◆ SetFrustumLeftRightSymmetry()

void ON_Viewport::SetFrustumLeftRightSymmetry ( bool bForceLeftRightSymmetry)

◆ SetFrustumNearFar() [1/4]

bool ON_Viewport::SetFrustumNearFar ( const double * bboxmin,
const double * bboxmax )

◆ SetFrustumNearFar() [2/4]

bool ON_Viewport::SetFrustumNearFar ( const double * center,
double radius )

◆ SetFrustumNearFar() [3/4]

bool ON_Viewport::SetFrustumNearFar ( double near_dist,
double far_dist )

◆ SetFrustumNearFar() [4/4]

bool ON_Viewport::SetFrustumNearFar ( double near_dist,
double far_dist,
double min_near_dist,
double min_near_over_far,
double target_dist )

◆ SetFrustumTopBottomSymmetry()

void ON_Viewport::SetFrustumTopBottomSymmetry ( bool bForceTopBottomSymmetry)

◆ SetMinNearOverFar()

void ON_Viewport::SetMinNearOverFar ( double )

◆ SetPerspectiveMinNearDist()

void ON_Viewport::SetPerspectiveMinNearDist ( double min_near_dist)

◆ SetPerspectiveMinNearOverFar()

void ON_Viewport::SetPerspectiveMinNearOverFar ( double min_near_over_far)

◆ SetProjection()

bool ON_Viewport::SetProjection ( ON::view_projection projection)

◆ SetScreenPort()

bool ON_Viewport::SetScreenPort ( int port_left,
int port_right,
int port_bottom,
int port_top,
int port_near = 0,
int port_far = 0 )

◆ SetTargetPoint()

bool ON_Viewport::SetTargetPoint ( ON_3dPoint target_point)

◆ SetViewportId()

bool ON_Viewport::SetViewportId ( const ON_UUID & viewport_id)

◆ SetViewScale()

bool ON_Viewport::SetViewScale ( double x,
double y )

◆ TargetDistance()

double ON_Viewport::TargetDistance ( bool bUseFrustumCenterFallback) const

◆ TargetPoint()

ON_3dPoint ON_Viewport::TargetPoint ( ) const

◆ Transform()

ON_BOOL32 ON_Viewport::Transform ( const ON_Xform & xform)
virtual

Reimplemented from ON_Geometry.

◆ UnlockCamera()

void ON_Viewport::UnlockCamera ( )

◆ UnlockFrustumSymmetry()

void ON_Viewport::UnlockFrustumSymmetry ( )

◆ ViewportId()

ON_UUID ON_Viewport::ViewportId ( void ) const

◆ Write()

ON_BOOL32 ON_Viewport::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

◆ ZoomToScreenRect()

bool ON_Viewport::ZoomToScreenRect ( int screen_x0,
int screen_y0,
int screen_x1,
int screen_y1 )

Member Data Documentation

◆ Default3dCameraDirection

const ON_3dVector ON_Viewport::Default3dCameraDirection
static

◆ m__MIN_NEAR_DIST

double ON_Viewport::m__MIN_NEAR_DIST
private

◆ m__MIN_NEAR_OVER_FAR

double ON_Viewport::m__MIN_NEAR_OVER_FAR
private

◆ m_bLockCamDir

bool ON_Viewport::m_bLockCamDir
protected

◆ m_bLockCamLoc

bool ON_Viewport::m_bLockCamLoc
protected

◆ m_bLockCamUp

bool ON_Viewport::m_bLockCamUp
protected

◆ m_bValidCamera

bool ON_Viewport::m_bValidCamera
protected

◆ m_bValidFrustum

bool ON_Viewport::m_bValidFrustum
protected

◆ m_bValidPort

bool ON_Viewport::m_bValidPort
protected

◆ m_CamDir

ON_3dVector ON_Viewport::m_CamDir
protected

◆ m_CamLoc

ON_3dPoint ON_Viewport::m_CamLoc
protected

◆ m_CamUp

ON_3dVector ON_Viewport::m_CamUp
protected

◆ m_CamX

ON_3dVector ON_Viewport::m_CamX
protected

◆ m_CamY

ON_3dVector ON_Viewport::m_CamY
protected

◆ m_CamZ

ON_3dVector ON_Viewport::m_CamZ
protected

◆ m_clip_mods

ON_Xform ON_Viewport::m_clip_mods
private

◆ m_clip_mods_inverse

ON_Xform ON_Viewport::m_clip_mods_inverse
private

◆ m_frus_bottom

double ON_Viewport::m_frus_bottom
protected

◆ m_frus_far

double ON_Viewport::m_frus_far
protected

◆ m_frus_left

double ON_Viewport::m_frus_left
protected

◆ m_frus_near

double ON_Viewport::m_frus_near
protected

◆ m_frus_right

double ON_Viewport::m_frus_right
protected

◆ m_frus_top

double ON_Viewport::m_frus_top
protected

◆ m_frustum_symmetry_flags

unsigned char ON_Viewport::m_frustum_symmetry_flags
protected

◆ m_port_bottom

int ON_Viewport::m_port_bottom
protected

◆ m_port_far

int ON_Viewport::m_port_far
protected

◆ m_port_left

int ON_Viewport::m_port_left
protected

◆ m_port_near

int ON_Viewport::m_port_near
protected

◆ m_port_right

int ON_Viewport::m_port_right
protected

◆ m_port_top

int ON_Viewport::m_port_top
protected

◆ m_projection

ON::view_projection ON_Viewport::m_projection
protected

◆ m_reserved1

unsigned char ON_Viewport::m_reserved1
protected

◆ m_target_point

ON_3dPoint ON_Viewport::m_target_point
protected

◆ m_viewport_id

ON_UUID ON_Viewport::m_viewport_id
private

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