Point Cloud Library (PCL)  1.7.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes
ON_Viewport Class Reference

#include <pcl/surface/3rdparty/opennurbs/opennurbs_viewport.h>

+ Inheritance diagram for ON_Viewport:

List of all members.

Public Member Functions

 ON_Viewport ()
 ~ON_Viewport ()
ON_Viewportoperator= (const ON_Viewport &)
bool IsValidCamera () const
bool IsValidFrustum () const
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
void Dump (ON_TextLog &) const
ON_BOOL32 Write (ON_BinaryArchive &) const
ON_BOOL32 Read (ON_BinaryArchive &)
int Dimension () const
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
ON_BOOL32 Transform (const ON_Xform &)
void Initialize ()
ON::view_projection Projection () const
bool SetProjection (ON::view_projection projection)
bool ChangeToParallelProjection (bool bSymmetricFrustum)
bool ChangeToPerspectiveProjection (double target_distance, bool bSymmetricFrustum, double lens_length)
bool ChangeToTwoPointPerspectiveProjection (double target_distance, ON_3dVector up, double lens_length)
bool IsPerspectiveProjection () const
bool IsTwoPointPerspectiveProjection () const
bool IsParallelProjection () const
bool SetCameraLocation (const ON_3dPoint &)
bool SetCameraDirection (const ON_3dVector &)
bool SetCameraUp (const ON_3dVector &)
ON_3dPoint CameraLocation () const
ON_3dVector CameraDirection () const
ON_3dVector CameraUp () const
bool CameraLocationIsLocked () const
bool CameraDirectionIsLocked () const
bool CameraUpIsLocked () const
bool FrustumIsLeftRightSymmetric () const
bool FrustumIsTopBottomSymmetric () const
void SetCameraLocationLock (bool bLockCameraLocation)
void SetCameraDirectionLock (bool bLockCameraDirection)
void SetCameraUpLock (bool bLockCameraUp)
void SetFrustumLeftRightSymmetry (bool bForceLeftRightSymmetry)
void SetFrustumTopBottomSymmetry (bool bForceTopBottomSymmetry)
void UnlockCamera ()
void UnlockFrustumSymmetry ()
bool GetCameraFrame (double *, double *, double *, double *) const
ON_3dVector CameraX () const
ON_3dVector CameraY () const
ON_3dVector CameraZ () const
bool IsCameraFrameWorldPlan (int *, int *, int *)
bool GetCameraExtents (int, int, const double *, ON_BoundingBox &cambbox, int bGrowBox=false) const
bool GetCameraExtents (const ON_BoundingBox &, ON_BoundingBox &cambbox, int bGrowBox=false) const
bool GetCameraExtents (ON_3dPoint &, double, ON_BoundingBox &cambox, int bGrowBox=false) const
bool SetFrustum (double left, double right, double bottom, double top, double near_dist, double far_dist)
bool GetFrustum (double *left, double *right, double *bottom, double *top, double *near_dist=NULL, double *far_dist=NULL) const
bool SetFrustumAspect (double)
bool GetFrustumAspect (double &) const
bool GetFrustumCenter (double *) const
double FrustumLeft () const
double FrustumRight () const
double FrustumBottom () const
double FrustumTop () const
double FrustumNear () const
double FrustumFar () const
double FrustumWidth () const
double FrustumHeight () const
double FrustumMinimumDiameter () const
double FrustumMaximumDiameter () const
bool SetFrustumNearFar (const double *bboxmin, const double *bboxmax)
bool SetFrustumNearFar (const double *center, double radius)
bool SetFrustumNearFar (double near_dist, double far_dist)
bool ChangeToSymmetricFrustum (bool bLeftRightSymmetric, bool bTopBottomSymmetric, double target_distance)
bool GetPointDepth (ON_3dPoint point, double *near_dist, double *far_dist, bool bGrowNearFar=false) const
bool GetPointDepth (ON_3dPoint point, double *view_plane_depth) const
bool GetBoundingBoxDepth (ON_BoundingBox bbox, double *near_dist, double *far_dist, bool bGrowNearFar=false) const
bool GetSphereDepth (ON_Sphere sphere, double *near_dist, double *far_dist, bool bGrowNearFar=false) const
bool SetFrustumNearFar (double near_dist, double far_dist, double min_near_dist, double min_near_over_far, double target_dist)
bool SetFrustumNearFar (double near_dist, double far_dist, double min_near_dist, double min_near_over_far, double target_dist, double relative_depth_bias)
bool GetNearPlane (ON_Plane &near_plane) const
bool GetNearPlaneEquation (ON_PlaneEquation &near_plane_equation) const
bool GetFarPlane (ON_Plane &far_plane) const
bool GetFarPlaneEquation (ON_PlaneEquation &far_plane_equation) const
bool GetViewPlane (double view_plane_depth, ON_Plane &view_plane) const
bool GetViewPlaneEquation (double view_plane_depth, ON_PlaneEquation &view_plane_equation) const
bool GetFrustumLeftPlane (ON_Plane &left_plane) const
bool GetFrustumLeftPlaneEquation (ON_PlaneEquation &left_plane_equation) const
bool GetFrustumRightPlane (ON_Plane &right_plane) const
bool GetFrustumRightPlaneEquation (ON_PlaneEquation &right_plane_equation) const
bool GetFrustumBottomPlane (ON_Plane &bottom_plane) const
bool GetFrustumBottomPlaneEquation (ON_PlaneEquation &bottom_plane_equation) const
bool GetFrustumTopPlane (ON_Plane &top_plane) const
bool GetFrustumTopPlaneEquation (ON_PlaneEquation &top_plane_equation) const
bool GetNearRect (ON_3dPoint &left_bottom, ON_3dPoint &right_bottom, ON_3dPoint &left_top, ON_3dPoint &right_top) const
bool GetFarRect (ON_3dPoint &left_bottom, ON_3dPoint &right_bottom, ON_3dPoint &left_top, ON_3dPoint &right_top) const
bool GetViewPlaneRect (double view_plane_depth, ON_3dPoint &left_bottom, ON_3dPoint &right_bottom, ON_3dPoint &left_top, ON_3dPoint &right_top) const
bool SetScreenPort (int port_left, int port_right, int port_bottom, int port_top, int port_near=0, int port_far=0)
bool GetScreenPort (int *left, int *right, int *port_bottom, int *port_top, int *port_near=NULL, int *port_far=NULL) const
int ScreenPortWidth () const
int ScreenPortHeight () const
bool GetScreenPortAspect (double &) const
bool GetCameraAngle (double *half_diagonal_angle, double *half_vertical_angle, double *half_horizontal_angle) const
bool GetCameraAngle (double *half_smallest_angle) const
bool SetCameraAngle (double half_smallest_angle)
bool GetCamera35mmLensLength (double *lens_length) const
bool SetCamera35mmLensLength (double lens_length)
bool GetCamera35mmLenseLength (double *lens_length) const
bool SetCamera35mmLenseLength (double lens_length)
bool GetXform (ON::coordinate_system srcCS, ON::coordinate_system destCS, ON_Xform &matrix) const
bool GetFrustumLine (double screenx, double screeny, ON_Line &world_line) const
bool GetWorldToScreenScale (const ON_3dPoint &point_in_frustum, double *pixels_per_unit) const
bool GetCoordinateSprite (int, int, int, int[3], double[3][2]) const
bool Extents (double half_view_angle, const ON_BoundingBox &world_bbox)
bool Extents (double half_view_angle, const ON_3dPoint &center, double radius)
bool ZoomToScreenRect (int screen_x0, int screen_y0, int screen_x1, int screen_y1)
bool DollyCamera (const ON_3dVector &dolly_vector)
bool GetDollyCameraVector (int screen_x0, int screen_y0, int screen_x1, int screen_y1, double proj_plane_dist, ON_3dVector &dolly_vector) const
bool DollyFrustum (double dolly_distance)
bool SetViewScale (double x, double y)
void GetViewScale (double *x, double *y) const
ON_Xform ClipModXform () const
ON_Xform ClipModInverseXform () const
bool ClipModXformIsIdentity () const
ON_3dPoint FrustumCenterPoint (double target_distance) const
ON_3dPoint TargetPoint () const
bool SetTargetPoint (ON_3dPoint target_point)
double TargetDistance (bool bUseFrustumCenterFallback) const
double ClipCoordDepthBias (double relative_depth_bias, double clip_z, double clip_w) const
bool GetClipCoordDepthBiasXform (double relative_depth_bias, ON_Xform &clip_bias) const
void SetPerspectiveClippingPlaneConstraints (unsigned int depth_buffer_bit_depth)
void SetPerspectiveMinNearOverFar (double min_near_over_far)
double PerspectiveMinNearOverFar () const
void SetPerspectiveMinNearDist (double min_near_dist)
double PerspectiveMinNearDist () const
bool SetViewportId (const ON_UUID &viewport_id)
ON_UUID ViewportId (void) const
void ChangeViewportId (const ON_UUID &viewport_id)

Static Public Member Functions

static void GetPerspectiveClippingPlaneConstraints (ON_3dPoint camera_location, unsigned int depth_buffer_bit_depth, double *min_near_dist, double *min_near_over_far)

Static Public Attributes

static const ON_3dVector Default3dCameraDirection
static const double DefaultNearDist
static const double DefaultFarDist
static const double DefaultMinNearDist
static const double DefaultMinNearOverFar

Protected Attributes

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

Detailed Description

Definition at line 31 of file opennurbs_viewport.h.


Constructor & Destructor Documentation


Member Function Documentation

bool ON_Viewport::ChangeToParallelProjection ( bool  bSymmetricFrustum)
bool ON_Viewport::ChangeToPerspectiveProjection ( double  target_distance,
bool  bSymmetricFrustum,
double  lens_length 
)
bool ON_Viewport::ChangeToSymmetricFrustum ( bool  bLeftRightSymmetric,
bool  bTopBottomSymmetric,
double  target_distance 
)
bool ON_Viewport::ChangeToTwoPointPerspectiveProjection ( double  target_distance,
ON_3dVector  up,
double  lens_length 
)
void ON_Viewport::ChangeViewportId ( const ON_UUID viewport_id)
double ON_Viewport::ClipCoordDepthBias ( double  relative_depth_bias,
double  clip_z,
double  clip_w 
) const
int ON_Viewport::Dimension ( ) const [virtual]

Implements ON_Geometry.

bool ON_Viewport::DollyCamera ( const ON_3dVector dolly_vector)
bool ON_Viewport::DollyFrustum ( double  dolly_distance)
void ON_Viewport::Dump ( ON_TextLog ) const [virtual]

Reimplemented from ON_Object.

bool ON_Viewport::Extents ( double  half_view_angle,
const ON_BoundingBox world_bbox 
)
bool ON_Viewport::Extents ( double  half_view_angle,
const ON_3dPoint center,
double  radius 
)
double ON_Viewport::FrustumBottom ( ) const
ON_3dPoint ON_Viewport::FrustumCenterPoint ( double  target_distance) const
double ON_Viewport::FrustumFar ( ) const
double ON_Viewport::FrustumHeight ( ) const
double ON_Viewport::FrustumLeft ( ) const
double ON_Viewport::FrustumNear ( ) const
double ON_Viewport::FrustumRight ( ) const
double ON_Viewport::FrustumTop ( ) const
double ON_Viewport::FrustumWidth ( ) const
ON_BOOL32 ON_Viewport::GetBBox ( double *  ,
double *  ,
ON_BOOL32  = false 
) const [virtual]

Implements ON_Geometry.

bool ON_Viewport::GetBoundingBoxDepth ( ON_BoundingBox  bbox,
double *  near_dist,
double *  far_dist,
bool  bGrowNearFar = false 
) const
bool ON_Viewport::GetCamera35mmLenseLength ( double *  lens_length) const
bool ON_Viewport::GetCamera35mmLensLength ( double *  lens_length) const
bool ON_Viewport::GetCameraAngle ( double *  half_diagonal_angle,
double *  half_vertical_angle,
double *  half_horizontal_angle 
) const
bool ON_Viewport::GetCameraAngle ( double *  half_smallest_angle) const
bool ON_Viewport::GetCameraExtents ( int  ,
int  ,
const double *  ,
ON_BoundingBox cambbox,
int  bGrowBox = false 
) const
bool ON_Viewport::GetCameraExtents ( const ON_BoundingBox ,
ON_BoundingBox cambbox,
int  bGrowBox = false 
) const
bool ON_Viewport::GetCameraExtents ( ON_3dPoint ,
double  ,
ON_BoundingBox cambox,
int  bGrowBox = false 
) const
bool ON_Viewport::GetCameraFrame ( double *  ,
double *  ,
double *  ,
double *   
) const
bool ON_Viewport::GetClipCoordDepthBiasXform ( double  relative_depth_bias,
ON_Xform clip_bias 
) const
bool ON_Viewport::GetCoordinateSprite ( int  ,
int  ,
int  ,
int  [3],
double  [3][2] 
) const
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
bool ON_Viewport::GetFarPlane ( ON_Plane far_plane) const
bool ON_Viewport::GetFarPlaneEquation ( ON_PlaneEquation far_plane_equation) const
bool ON_Viewport::GetFarRect ( ON_3dPoint left_bottom,
ON_3dPoint right_bottom,
ON_3dPoint left_top,
ON_3dPoint right_top 
) const
bool ON_Viewport::GetFrustum ( double *  left,
double *  right,
double *  bottom,
double *  top,
double *  near_dist = NULL,
double *  far_dist = NULL 
) const
bool ON_Viewport::GetFrustumAspect ( double &  ) const
bool ON_Viewport::GetFrustumBottomPlane ( ON_Plane bottom_plane) const
bool ON_Viewport::GetFrustumBottomPlaneEquation ( ON_PlaneEquation bottom_plane_equation) const
bool ON_Viewport::GetFrustumCenter ( double *  ) const
bool ON_Viewport::GetFrustumLeftPlane ( ON_Plane left_plane) const
bool ON_Viewport::GetFrustumLeftPlaneEquation ( ON_PlaneEquation left_plane_equation) const
bool ON_Viewport::GetFrustumLine ( double  screenx,
double  screeny,
ON_Line world_line 
) const
bool ON_Viewport::GetFrustumRightPlane ( ON_Plane right_plane) const
bool ON_Viewport::GetFrustumRightPlaneEquation ( ON_PlaneEquation right_plane_equation) const
bool ON_Viewport::GetFrustumTopPlane ( ON_Plane top_plane) const
bool ON_Viewport::GetFrustumTopPlaneEquation ( ON_PlaneEquation top_plane_equation) const
bool ON_Viewport::GetNearPlane ( ON_Plane near_plane) const
bool ON_Viewport::GetNearPlaneEquation ( ON_PlaneEquation near_plane_equation) const
bool ON_Viewport::GetNearRect ( ON_3dPoint left_bottom,
ON_3dPoint right_bottom,
ON_3dPoint left_top,
ON_3dPoint right_top 
) const
static void ON_Viewport::GetPerspectiveClippingPlaneConstraints ( ON_3dPoint  camera_location,
unsigned int  depth_buffer_bit_depth,
double *  min_near_dist,
double *  min_near_over_far 
) [static]
bool ON_Viewport::GetPointDepth ( ON_3dPoint  point,
double *  near_dist,
double *  far_dist,
bool  bGrowNearFar = false 
) const
bool ON_Viewport::GetPointDepth ( ON_3dPoint  point,
double *  view_plane_depth 
) const
bool ON_Viewport::GetScreenPort ( int *  left,
int *  right,
int *  port_bottom,
int *  port_top,
int *  port_near = NULL,
int *  port_far = NULL 
) const
bool ON_Viewport::GetScreenPortAspect ( double &  ) const
bool ON_Viewport::GetSphereDepth ( ON_Sphere  sphere,
double *  near_dist,
double *  far_dist,
bool  bGrowNearFar = false 
) const
bool ON_Viewport::GetViewPlane ( double  view_plane_depth,
ON_Plane view_plane 
) const
bool ON_Viewport::GetViewPlaneEquation ( double  view_plane_depth,
ON_PlaneEquation view_plane_equation 
) const
bool ON_Viewport::GetViewPlaneRect ( double  view_plane_depth,
ON_3dPoint left_bottom,
ON_3dPoint right_bottom,
ON_3dPoint left_top,
ON_3dPoint right_top 
) const
void ON_Viewport::GetViewScale ( double *  x,
double *  y 
) const
bool ON_Viewport::GetWorldToScreenScale ( const ON_3dPoint point_in_frustum,
double *  pixels_per_unit 
) const
bool ON_Viewport::GetXform ( ON::coordinate_system  srcCS,
ON::coordinate_system  destCS,
ON_Xform matrix 
) const
bool ON_Viewport::IsCameraFrameWorldPlan ( int *  ,
int *  ,
int *   
)
ON_BOOL32 ON_Viewport::IsValid ( ON_TextLog text_log = NULL) const [virtual]

Implements ON_Object.

ON_Viewport& ON_Viewport::operator= ( const ON_Viewport )
ON::view_projection ON_Viewport::Projection ( ) const
ON_BOOL32 ON_Viewport::Read ( ON_BinaryArchive ) [virtual]

Reimplemented from ON_Object.

bool ON_Viewport::SetCamera35mmLenseLength ( double  lens_length)
bool ON_Viewport::SetCamera35mmLensLength ( double  lens_length)
bool ON_Viewport::SetCameraAngle ( double  half_smallest_angle)
void ON_Viewport::SetCameraDirectionLock ( bool  bLockCameraDirection)
void ON_Viewport::SetCameraLocationLock ( bool  bLockCameraLocation)
void ON_Viewport::SetCameraUpLock ( bool  bLockCameraUp)
bool ON_Viewport::SetFrustum ( double  left,
double  right,
double  bottom,
double  top,
double  near_dist,
double  far_dist 
)
bool ON_Viewport::SetFrustumAspect ( double  )
void ON_Viewport::SetFrustumLeftRightSymmetry ( bool  bForceLeftRightSymmetry)
bool ON_Viewport::SetFrustumNearFar ( const double *  bboxmin,
const double *  bboxmax 
)
bool ON_Viewport::SetFrustumNearFar ( const double *  center,
double  radius 
)
bool ON_Viewport::SetFrustumNearFar ( double  near_dist,
double  far_dist 
)
bool ON_Viewport::SetFrustumNearFar ( double  near_dist,
double  far_dist,
double  min_near_dist,
double  min_near_over_far,
double  target_dist 
)
bool ON_Viewport::SetFrustumNearFar ( double  near_dist,
double  far_dist,
double  min_near_dist,
double  min_near_over_far,
double  target_dist,
double  relative_depth_bias 
)
void ON_Viewport::SetFrustumTopBottomSymmetry ( bool  bForceTopBottomSymmetry)
void ON_Viewport::SetPerspectiveClippingPlaneConstraints ( unsigned int  depth_buffer_bit_depth)
void ON_Viewport::SetPerspectiveMinNearDist ( double  min_near_dist)
void ON_Viewport::SetPerspectiveMinNearOverFar ( double  min_near_over_far)
bool ON_Viewport::SetProjection ( ON::view_projection  projection)
bool ON_Viewport::SetScreenPort ( int  port_left,
int  port_right,
int  port_bottom,
int  port_top,
int  port_near = 0,
int  port_far = 0 
)
bool ON_Viewport::SetTargetPoint ( ON_3dPoint  target_point)
bool ON_Viewport::SetViewportId ( const ON_UUID viewport_id)
bool ON_Viewport::SetViewScale ( double  x,
double  y 
)
double ON_Viewport::TargetDistance ( bool  bUseFrustumCenterFallback) const
ON_BOOL32 ON_Viewport::Transform ( const ON_Xform ) [virtual]

Reimplemented from ON_Geometry.

ON_UUID ON_Viewport::ViewportId ( void  ) const
ON_BOOL32 ON_Viewport::Write ( ON_BinaryArchive ) const [virtual]

Reimplemented from ON_Object.

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

Member Data Documentation

Definition at line 37 of file opennurbs_viewport.h.

const double ON_Viewport::DefaultFarDist [static]

Definition at line 1458 of file opennurbs_viewport.h.

const double ON_Viewport::DefaultMinNearDist [static]

Definition at line 1459 of file opennurbs_viewport.h.

const double ON_Viewport::DefaultMinNearOverFar [static]

Definition at line 1460 of file opennurbs_viewport.h.

const double ON_Viewport::DefaultNearDist [static]

Definition at line 1457 of file opennurbs_viewport.h.

bool ON_Viewport::m_bLockCamDir [protected]

Definition at line 1379 of file opennurbs_viewport.h.

bool ON_Viewport::m_bLockCamLoc [protected]

Definition at line 1380 of file opennurbs_viewport.h.

bool ON_Viewport::m_bLockCamUp [protected]

Definition at line 1378 of file opennurbs_viewport.h.

bool ON_Viewport::m_bValidCamera [protected]

Definition at line 1356 of file opennurbs_viewport.h.

bool ON_Viewport::m_bValidFrustum [protected]

Definition at line 1357 of file opennurbs_viewport.h.

bool ON_Viewport::m_bValidPort [protected]

Definition at line 1358 of file opennurbs_viewport.h.

Definition at line 1384 of file opennurbs_viewport.h.

Definition at line 1383 of file opennurbs_viewport.h.

Definition at line 1385 of file opennurbs_viewport.h.

Definition at line 1388 of file opennurbs_viewport.h.

Definition at line 1389 of file opennurbs_viewport.h.

Definition at line 1390 of file opennurbs_viewport.h.

double ON_Viewport::m_frus_bottom [protected]

Definition at line 1398 of file opennurbs_viewport.h.

double ON_Viewport::m_frus_far [protected]

Definition at line 1399 of file opennurbs_viewport.h.

double ON_Viewport::m_frus_left [protected]

Definition at line 1397 of file opennurbs_viewport.h.

double ON_Viewport::m_frus_near [protected]

Definition at line 1399 of file opennurbs_viewport.h.

double ON_Viewport::m_frus_right [protected]

Definition at line 1397 of file opennurbs_viewport.h.

double ON_Viewport::m_frus_top [protected]

Definition at line 1398 of file opennurbs_viewport.h.

unsigned char ON_Viewport::m_frustum_symmetry_flags [protected]

Definition at line 1381 of file opennurbs_viewport.h.

int ON_Viewport::m_port_bottom [protected]

Definition at line 1409 of file opennurbs_viewport.h.

int ON_Viewport::m_port_far [protected]

Definition at line 1415 of file opennurbs_viewport.h.

int ON_Viewport::m_port_left [protected]

Definition at line 1408 of file opennurbs_viewport.h.

int ON_Viewport::m_port_near [protected]

Definition at line 1415 of file opennurbs_viewport.h.

int ON_Viewport::m_port_right [protected]

Definition at line 1408 of file opennurbs_viewport.h.

int ON_Viewport::m_port_top [protected]

Definition at line 1409 of file opennurbs_viewport.h.

ON::view_projection ON_Viewport::m_projection [protected]

Definition at line 1364 of file opennurbs_viewport.h.

unsigned char ON_Viewport::m_reserved1 [protected]

Definition at line 1359 of file opennurbs_viewport.h.

Definition at line 1425 of file opennurbs_viewport.h.


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