HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUI_ViewState Class Reference

#include <GUI_ViewState.h>

Public Types

enum  GUI_ViewType { GUI_MAIN, GUI_LEFT, GUI_RIGHT, GUI_IMAGE }
 

Public Member Functions

 GUI_ViewState (bool for_lops)
 
 ~GUI_ViewState ()
 
const GUI_DisplayOptiongetDisplayOptionRef () const
 
const GUI_ViewParametergetViewParameterRef () const
 
GUI_DisplayOptiongetDisplayOptionRef ()
 
GUI_ViewParametergetViewParameterRef ()
 
void setViewport (RE_Render *r, int x, int y, int w, int h)
 
void setProjection (RE_Render *r)
 
void homeToBox (int w, int h, UT_BoundingBox &box, const UT_Matrix3R *rot=NULL, bool centred=false, bool zoom_in=false)
 
void getViewport (int &l, int &r, int &b, int &t) const
 
UT_DimRect getViewport () const
 
void getView (int &l, int &r, int &b, int &t) const
 
UT_DimRect getView () const
 
int getViewWidth () const
 
int getViewHeight () const
 
const UT_Matrix4DgetItransformMatrix ()
 
const UT_Matrix4DgetTransformMatrix ()
 
const UT_Matrix4DgetProjectionMatrix () const
 
const UT_Matrix4DgetRotateMatrix () const
 
void setRotateMatrix (const UT_Matrix3R &mat)
 
int initialized () const
 
void setOrthoFlag (int onoff)
 
int getOrthoFlag () const
 
void setApplyAspectFlag (int onoff)
 
int getApplyAspectFlag () const
 
void setAspectRatio (fpreal value)
 
fpreal getAspectRatio () const
 
void setDefaultFOV (fpreal value)
 
fpreal getDefaultFOV () const
 
void setLimits (fpreal n, fpreal f)
 
void rotate (UT_Axis3::axis axis, fpreal dx)
 
void rotate (const UT_Vector3R &axis, fpreal dx)
 
void rotate (const UT_Quaternion &quat)
 
void trackball (fpreal dx, fpreal dy)
 
void dotumble (fpreal dx, fpreal dy, int changed)
 
void scroll (fpreal dx, fpreal dy)
 
void scroll (fpreal dx, fpreal dy, const UT_InclusiveRect &viewport)
 
void worldLockedScroll (const UT_Vector3R &locked_pos, fpreal dx, fpreal dy)
 
void dolly (fpreal dx, bool precise_zoom=false, bool smooth_dolly=false)
 
void directedDolly (const UT_Vector3R &unit_worldspace_dir, fpreal dx, bool precise_zoom=false, bool smooth_dolly=false)
 
void zoom (fpreal dx, GUI_ViewParameter::GUI_ZoomItem item, bool precise_zoom=false)
 
void zoom (fpreal dx, GUI_ViewParameter::GUI_ZoomItem item, const UT_InclusiveRect &viewport, bool precise_zoom=false)
 
void offsetZoom (fpreal sx, fpreal sy, fpreal dx, GUI_ViewParameter::GUI_ZoomItem item, bool precise_zoom=false)
 
void offsetZoom (fpreal sx, fpreal sy, fpreal dx, GUI_ViewParameter::GUI_ZoomItem item, const UT_InclusiveRect &viewport, bool precise_zoom=false)
 
void boxZoom (fpreal frstx, fpreal frsty, fpreal lastx, fpreal lasty, fpreal distance)
 
void screenScroll (fpreal dx, fpreal dy)
 
void setPrimitiveMask (GA_PrimCompat::TypeMask m)
 
GA_PrimCompat::TypeMask getPrimitiveMask () const
 
GUI_ViewParametergetViewParameter (GUI_ViewState::GUI_ViewType view_type)
 
void syncViewsWithMain ()
 
void setViewport (GUI_ViewState::GUI_ViewType vt, RE_Render *r, int x, int y, int w, int h)
 
void setProjection (GUI_ViewState::GUI_ViewType vt, RE_Render *r)
 
void alignPlaneWithView (UT_Plane *plane)
 
const char * className () const
 
GUI_ViewStateoperator= (const GUI_ViewState &src)
 
void saveAsDefault ()
 
void resetToDefaults ()
 
void setSnapshotImage (TIL_Raster *texture)
 
TIL_RastergetSnapshotImage () const
 
void setSnapshotImageFrame (int frame)
 
int getSnapshotImageFrame () const
 
void setSnapshotFactor (float alpha)
 
float getSnapshotFactor () const
 
void setSnapshotBlendMode (GUI_SnapshotBlendMode mode)
 
GUI_SnapshotBlendMode getSnapshotBlendMode () const
 
void setHideSnapshotAtSourceFrame (bool flag)
 
bool getHideSnapshotAtSourceFrame () const
 
void setTumbling (bool tumble)
 
bool isTumbling () const
 
bool isLopsView () const
 
void allowNearFarClipAdapt (bool allow)
 
void setSceneBounds (const UT_BoundingBoxD &bbox)
 
void setSelectedObjectBounds (const UT_BoundingBoxD &bbox)
 
UT_BoundingBox getSceneBounds () const
 

Static Public Member Functions

static void overridePrefFile (const char *filename)
 
static void getDefaultNearFarLimits (fpreal &near_limit, fpreal &far_limit)
 
static GUI_ExternalDefaultCBgetExternalDefaultCB (bool for_lops)
 
static void setExternalDefaultCB (GUI_ExternalDefaultCB *cb, bool for_lops)
 
static void ensureDefaultsLoaded (bool is_lops)
 

Detailed Description

Definition at line 45 of file GUI_ViewState.h.

Member Enumeration Documentation

Enumerator
GUI_MAIN 
GUI_LEFT 
GUI_RIGHT 
GUI_IMAGE 

Definition at line 290 of file GUI_ViewState.h.

Constructor & Destructor Documentation

GUI_ViewState::GUI_ViewState ( bool  for_lops)
GUI_ViewState::~GUI_ViewState ( )

Member Function Documentation

void GUI_ViewState::alignPlaneWithView ( UT_Plane plane)
void GUI_ViewState::allowNearFarClipAdapt ( bool  allow)
inline

Definition at line 370 of file GUI_ViewState.h.

void GUI_ViewState::boxZoom ( fpreal  frstx,
fpreal  frsty,
fpreal  lastx,
fpreal  lasty,
fpreal  distance 
)
inline

Definition at line 273 of file GUI_ViewState.h.

const char* GUI_ViewState::className ( ) const
void GUI_ViewState::directedDolly ( const UT_Vector3R unit_worldspace_dir,
fpreal  dx,
bool  precise_zoom = false,
bool  smooth_dolly = false 
)
inline

Definition at line 211 of file GUI_ViewState.h.

void GUI_ViewState::dolly ( fpreal  dx,
bool  precise_zoom = false,
bool  smooth_dolly = false 
)
inline

Definition at line 200 of file GUI_ViewState.h.

void GUI_ViewState::dotumble ( fpreal  dx,
fpreal  dy,
int  changed 
)
inline

Definition at line 148 of file GUI_ViewState.h.

static void GUI_ViewState::ensureDefaultsLoaded ( bool  is_lops)
static
int GUI_ViewState::getApplyAspectFlag ( ) const
inline

Definition at line 111 of file GUI_ViewState.h.

fpreal GUI_ViewState::getAspectRatio ( ) const
inline

Definition at line 115 of file GUI_ViewState.h.

fpreal GUI_ViewState::getDefaultFOV ( ) const
inline

Definition at line 119 of file GUI_ViewState.h.

static void GUI_ViewState::getDefaultNearFarLimits ( fpreal near_limit,
fpreal far_limit 
)
static
const GUI_DisplayOption& GUI_ViewState::getDisplayOptionRef ( ) const
inline

Definition at line 52 of file GUI_ViewState.h.

GUI_DisplayOption& GUI_ViewState::getDisplayOptionRef ( )
inline

Definition at line 56 of file GUI_ViewState.h.

static GUI_ExternalDefaultCB* GUI_ViewState::getExternalDefaultCB ( bool  for_lops)
inlinestatic

Definition at line 397 of file GUI_ViewState.h.

bool GUI_ViewState::getHideSnapshotAtSourceFrame ( ) const
const UT_Matrix4D& GUI_ViewState::getItransformMatrix ( )
inline

Definition at line 88 of file GUI_ViewState.h.

int GUI_ViewState::getOrthoFlag ( ) const
inline

Definition at line 107 of file GUI_ViewState.h.

GA_PrimCompat::TypeMask GUI_ViewState::getPrimitiveMask ( ) const
inline

Definition at line 286 of file GUI_ViewState.h.

const UT_Matrix4D& GUI_ViewState::getProjectionMatrix ( ) const
inline

Definition at line 92 of file GUI_ViewState.h.

const UT_Matrix4D& GUI_ViewState::getRotateMatrix ( ) const
inline

Definition at line 94 of file GUI_ViewState.h.

UT_BoundingBox GUI_ViewState::getSceneBounds ( ) const
inline

Definition at line 390 of file GUI_ViewState.h.

GUI_SnapshotBlendMode GUI_ViewState::getSnapshotBlendMode ( ) const
float GUI_ViewState::getSnapshotFactor ( ) const
TIL_Raster* GUI_ViewState::getSnapshotImage ( ) const
int GUI_ViewState::getSnapshotImageFrame ( ) const
const UT_Matrix4D& GUI_ViewState::getTransformMatrix ( )
inline

Definition at line 90 of file GUI_ViewState.h.

void GUI_ViewState::getView ( int l,
int r,
int b,
int t 
) const
inline

Definition at line 82 of file GUI_ViewState.h.

UT_DimRect GUI_ViewState::getView ( ) const
inline

Definition at line 84 of file GUI_ViewState.h.

int GUI_ViewState::getViewHeight ( ) const
inline

Definition at line 86 of file GUI_ViewState.h.

GUI_ViewParameter& GUI_ViewState::getViewParameter ( GUI_ViewState::GUI_ViewType  view_type)
inline

Definition at line 299 of file GUI_ViewState.h.

const GUI_ViewParameter& GUI_ViewState::getViewParameterRef ( ) const
inline

Definition at line 54 of file GUI_ViewState.h.

GUI_ViewParameter& GUI_ViewState::getViewParameterRef ( )
inline

Definition at line 57 of file GUI_ViewState.h.

void GUI_ViewState::getViewport ( int l,
int r,
int b,
int t 
) const
inline

Definition at line 79 of file GUI_ViewState.h.

UT_DimRect GUI_ViewState::getViewport ( ) const
inline

Definition at line 81 of file GUI_ViewState.h.

int GUI_ViewState::getViewWidth ( ) const
inline

Definition at line 85 of file GUI_ViewState.h.

void GUI_ViewState::homeToBox ( int  w,
int  h,
UT_BoundingBox box,
const UT_Matrix3R rot = NULL,
bool  centred = false,
bool  zoom_in = false 
)
inline

Definition at line 66 of file GUI_ViewState.h.

int GUI_ViewState::initialized ( ) const
inline

Definition at line 99 of file GUI_ViewState.h.

bool GUI_ViewState::isLopsView ( ) const
inline

Definition at line 364 of file GUI_ViewState.h.

bool GUI_ViewState::isTumbling ( ) const
inline

Definition at line 362 of file GUI_ViewState.h.

void GUI_ViewState::offsetZoom ( fpreal  sx,
fpreal  sy,
fpreal  dx,
GUI_ViewParameter::GUI_ZoomItem  item,
bool  precise_zoom = false 
)
inline

Definition at line 247 of file GUI_ViewState.h.

void GUI_ViewState::offsetZoom ( fpreal  sx,
fpreal  sy,
fpreal  dx,
GUI_ViewParameter::GUI_ZoomItem  item,
const UT_InclusiveRect viewport,
bool  precise_zoom = false 
)
inline

Definition at line 258 of file GUI_ViewState.h.

GUI_ViewState& GUI_ViewState::operator= ( const GUI_ViewState src)
static void GUI_ViewState::overridePrefFile ( const char *  filename)
static
void GUI_ViewState::resetToDefaults ( )
void GUI_ViewState::rotate ( UT_Axis3::axis  axis,
fpreal  dx 
)
inline

Definition at line 124 of file GUI_ViewState.h.

void GUI_ViewState::rotate ( const UT_Vector3R axis,
fpreal  dx 
)
inline

Definition at line 130 of file GUI_ViewState.h.

void GUI_ViewState::rotate ( const UT_Quaternion quat)
inline

Definition at line 136 of file GUI_ViewState.h.

void GUI_ViewState::saveAsDefault ( )
void GUI_ViewState::screenScroll ( fpreal  dx,
fpreal  dy 
)
inline

Definition at line 277 of file GUI_ViewState.h.

void GUI_ViewState::scroll ( fpreal  dx,
fpreal  dy 
)
inline

Definition at line 154 of file GUI_ViewState.h.

void GUI_ViewState::scroll ( fpreal  dx,
fpreal  dy,
const UT_InclusiveRect viewport 
)
inline

Definition at line 160 of file GUI_ViewState.h.

void GUI_ViewState::setApplyAspectFlag ( int  onoff)
inline

Definition at line 109 of file GUI_ViewState.h.

void GUI_ViewState::setAspectRatio ( fpreal  value)
inline

Definition at line 113 of file GUI_ViewState.h.

void GUI_ViewState::setDefaultFOV ( fpreal  value)
inline

Definition at line 117 of file GUI_ViewState.h.

static void GUI_ViewState::setExternalDefaultCB ( GUI_ExternalDefaultCB cb,
bool  for_lops 
)
inlinestatic

Definition at line 399 of file GUI_ViewState.h.

void GUI_ViewState::setHideSnapshotAtSourceFrame ( bool  flag)
void GUI_ViewState::setLimits ( fpreal  n,
fpreal  f 
)
inline

Definition at line 121 of file GUI_ViewState.h.

void GUI_ViewState::setOrthoFlag ( int  onoff)
inline

Definition at line 101 of file GUI_ViewState.h.

void GUI_ViewState::setPrimitiveMask ( GA_PrimCompat::TypeMask  m)
inline

Definition at line 284 of file GUI_ViewState.h.

void GUI_ViewState::setProjection ( RE_Render r)
inline

Definition at line 62 of file GUI_ViewState.h.

void GUI_ViewState::setProjection ( GUI_ViewState::GUI_ViewType  vt,
RE_Render r 
)
inline

Definition at line 323 of file GUI_ViewState.h.

void GUI_ViewState::setRotateMatrix ( const UT_Matrix3R mat)
inline

Definition at line 96 of file GUI_ViewState.h.

void GUI_ViewState::setSceneBounds ( const UT_BoundingBoxD bbox)
inline

Definition at line 377 of file GUI_ViewState.h.

void GUI_ViewState::setSelectedObjectBounds ( const UT_BoundingBoxD bbox)
inline

Definition at line 384 of file GUI_ViewState.h.

void GUI_ViewState::setSnapshotBlendMode ( GUI_SnapshotBlendMode  mode)
void GUI_ViewState::setSnapshotFactor ( float  alpha)
void GUI_ViewState::setSnapshotImage ( TIL_Raster texture)
void GUI_ViewState::setSnapshotImageFrame ( int  frame)
void GUI_ViewState::setTumbling ( bool  tumble)
inline

Definition at line 361 of file GUI_ViewState.h.

void GUI_ViewState::setViewport ( RE_Render r,
int  x,
int  y,
int  w,
int  h 
)
inline

Definition at line 60 of file GUI_ViewState.h.

void GUI_ViewState::setViewport ( GUI_ViewState::GUI_ViewType  vt,
RE_Render r,
int  x,
int  y,
int  w,
int  h 
)
inline

Definition at line 320 of file GUI_ViewState.h.

void GUI_ViewState::syncViewsWithMain ( )
inline

Definition at line 313 of file GUI_ViewState.h.

void GUI_ViewState::trackball ( fpreal  dx,
fpreal  dy 
)
inline

Definition at line 142 of file GUI_ViewState.h.

void GUI_ViewState::worldLockedScroll ( const UT_Vector3R locked_pos,
fpreal  dx,
fpreal  dy 
)
inline

Definition at line 167 of file GUI_ViewState.h.

void GUI_ViewState::zoom ( fpreal  dx,
GUI_ViewParameter::GUI_ZoomItem  item,
bool  precise_zoom = false 
)
inline

Definition at line 229 of file GUI_ViewState.h.

void GUI_ViewState::zoom ( fpreal  dx,
GUI_ViewParameter::GUI_ZoomItem  item,
const UT_InclusiveRect viewport,
bool  precise_zoom = false 
)
inline

Definition at line 236 of file GUI_ViewState.h.


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