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 }
 

Public Member Functions

 GUI_ViewState ()
 
 ~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
 
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 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 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 setPrimitiveMask (GA_PrimCompat::TypeMask m)
 
GA_PrimCompat::TypeMask getPrimitiveMask (void) 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 setSnapshotAlpha (float alpha)
 
float getSnapshotAlpha () const
 
void setHideSnapshotAtSourceFrame (bool flag)
 
bool getHideSnapshotAtSourceFrame () const
 
void setTumbling (bool tumble)
 
bool isTumbling () const
 

Static Public Member Functions

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

Detailed Description

Definition at line 44 of file GUI_ViewState.h.

Member Enumeration Documentation

Enumerator
GUI_MAIN 
GUI_LEFT 
GUI_RIGHT 

Definition at line 244 of file GUI_ViewState.h.

Constructor & Destructor Documentation

GUI_ViewState::GUI_ViewState ( )
GUI_ViewState::~GUI_ViewState ( )

Member Function Documentation

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

Definition at line 234 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 172 of file GUI_ViewState.h.

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

Definition at line 161 of file GUI_ViewState.h.

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

Definition at line 142 of file GUI_ViewState.h.

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

Definition at line 109 of file GUI_ViewState.h.

fpreal GUI_ViewState::getAspectRatio ( ) const
inline

Definition at line 113 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 51 of file GUI_ViewState.h.

GUI_DisplayOption& GUI_ViewState::getDisplayOptionRef ( )
inline

Definition at line 55 of file GUI_ViewState.h.

static GUI_ExternalDefaultCB* GUI_ViewState::getExternalDefaultCB ( )
inlinestatic

Definition at line 318 of file GUI_ViewState.h.

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

Definition at line 86 of file GUI_ViewState.h.

int GUI_ViewState::getOrthoFlag ( ) const
inline

Definition at line 105 of file GUI_ViewState.h.

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

Definition at line 240 of file GUI_ViewState.h.

const UT_Matrix4D& GUI_ViewState::getProjectionMatrix ( ) const
inline

Definition at line 90 of file GUI_ViewState.h.

const UT_Matrix4D& GUI_ViewState::getRotateMatrix ( ) const
inline

Definition at line 92 of file GUI_ViewState.h.

float GUI_ViewState::getSnapshotAlpha ( ) const
TIL_Raster* GUI_ViewState::getSnapshotImage ( ) const
int GUI_ViewState::getSnapshotImageFrame ( ) const
const UT_Matrix4D& GUI_ViewState::getTransformMatrix ( )
inline

Definition at line 88 of file GUI_ViewState.h.

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

Definition at line 81 of file GUI_ViewState.h.

int GUI_ViewState::getViewHeight ( ) const
inline

Definition at line 84 of file GUI_ViewState.h.

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

Definition at line 252 of file GUI_ViewState.h.

const GUI_ViewParameter& GUI_ViewState::getViewParameterRef ( ) const
inline

Definition at line 53 of file GUI_ViewState.h.

GUI_ViewParameter& GUI_ViewState::getViewParameterRef ( )
inline

Definition at line 56 of file GUI_ViewState.h.

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

Definition at line 78 of file GUI_ViewState.h.

UT_DimRect GUI_ViewState::getViewport ( ) const
inline

Definition at line 80 of file GUI_ViewState.h.

int GUI_ViewState::getViewWidth ( ) const
inline

Definition at line 83 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 65 of file GUI_ViewState.h.

int GUI_ViewState::initialized ( ) const
inline

Definition at line 97 of file GUI_ViewState.h.

bool GUI_ViewState::isTumbling ( ) const
inline

Definition at line 310 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 208 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 219 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 118 of file GUI_ViewState.h.

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

Definition at line 124 of file GUI_ViewState.h.

void GUI_ViewState::rotate ( const UT_Quaternion quat)
inline

Definition at line 130 of file GUI_ViewState.h.

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

Definition at line 148 of file GUI_ViewState.h.

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

Definition at line 154 of file GUI_ViewState.h.

void GUI_ViewState::setApplyAspectFlag ( int  onoff)
inline

Definition at line 107 of file GUI_ViewState.h.

void GUI_ViewState::setAspectRatio ( fpreal  value)
inline

Definition at line 111 of file GUI_ViewState.h.

static void GUI_ViewState::setExternalDefaultCB ( GUI_ExternalDefaultCB cb)
inlinestatic

Definition at line 320 of file GUI_ViewState.h.

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

Definition at line 115 of file GUI_ViewState.h.

void GUI_ViewState::setOrthoFlag ( int  onoff)
inline

Definition at line 99 of file GUI_ViewState.h.

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

Definition at line 238 of file GUI_ViewState.h.

void GUI_ViewState::setProjection ( RE_Render r)
inline

Definition at line 61 of file GUI_ViewState.h.

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

Definition at line 274 of file GUI_ViewState.h.

void GUI_ViewState::setRotateMatrix ( const UT_Matrix3R mat)
inline

Definition at line 94 of file GUI_ViewState.h.

void GUI_ViewState::setSnapshotAlpha ( 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 309 of file GUI_ViewState.h.

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

Definition at line 59 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 271 of file GUI_ViewState.h.

void GUI_ViewState::syncViewsWithMain ( )
inline

Definition at line 264 of file GUI_ViewState.h.

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

Definition at line 136 of file GUI_ViewState.h.

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

Definition at line 190 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 197 of file GUI_ViewState.h.


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