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_RenderContext r, int x, int y, int w, int h)
 
void setProjection (RE_RenderContext 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_RenderContext r, int x, int y, int w, int h)
 
void setProjection (GUI_ViewState::GUI_ViewType vt, RE_RenderContext 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 46 of file GUI_ViewState.h.

Member Enumeration Documentation

Enumerator
GUI_MAIN 
GUI_LEFT 
GUI_RIGHT 
GUI_IMAGE 

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

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

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

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

Definition at line 201 of file GUI_ViewState.h.

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

Definition at line 149 of file GUI_ViewState.h.

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

Definition at line 112 of file GUI_ViewState.h.

fpreal GUI_ViewState::getAspectRatio ( ) const
inline

Definition at line 116 of file GUI_ViewState.h.

fpreal GUI_ViewState::getDefaultFOV ( ) const
inline

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

GUI_DisplayOption& GUI_ViewState::getDisplayOptionRef ( )
inline

Definition at line 57 of file GUI_ViewState.h.

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

Definition at line 399 of file GUI_ViewState.h.

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

Definition at line 89 of file GUI_ViewState.h.

int GUI_ViewState::getOrthoFlag ( ) const
inline

Definition at line 108 of file GUI_ViewState.h.

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

Definition at line 287 of file GUI_ViewState.h.

const UT_Matrix4D& GUI_ViewState::getProjectionMatrix ( ) const
inline

Definition at line 93 of file GUI_ViewState.h.

const UT_Matrix4D& GUI_ViewState::getRotateMatrix ( ) const
inline

Definition at line 95 of file GUI_ViewState.h.

UT_BoundingBox GUI_ViewState::getSceneBounds ( ) const
inline

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

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

Definition at line 83 of file GUI_ViewState.h.

UT_DimRect GUI_ViewState::getView ( ) const
inline

Definition at line 85 of file GUI_ViewState.h.

int GUI_ViewState::getViewHeight ( ) const
inline

Definition at line 87 of file GUI_ViewState.h.

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

Definition at line 300 of file GUI_ViewState.h.

const GUI_ViewParameter& GUI_ViewState::getViewParameterRef ( ) const
inline

Definition at line 55 of file GUI_ViewState.h.

GUI_ViewParameter& GUI_ViewState::getViewParameterRef ( )
inline

Definition at line 58 of file GUI_ViewState.h.

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

Definition at line 80 of file GUI_ViewState.h.

UT_DimRect GUI_ViewState::getViewport ( ) const
inline

Definition at line 82 of file GUI_ViewState.h.

int GUI_ViewState::getViewWidth ( ) const
inline

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

int GUI_ViewState::initialized ( ) const
inline

Definition at line 100 of file GUI_ViewState.h.

bool GUI_ViewState::isLopsView ( ) const
inline

Definition at line 366 of file GUI_ViewState.h.

bool GUI_ViewState::isTumbling ( ) const
inline

Definition at line 364 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 248 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 259 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 125 of file GUI_ViewState.h.

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

Definition at line 131 of file GUI_ViewState.h.

void GUI_ViewState::rotate ( const UT_Quaternion quat)
inline

Definition at line 137 of file GUI_ViewState.h.

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

Definition at line 278 of file GUI_ViewState.h.

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

Definition at line 155 of file GUI_ViewState.h.

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

Definition at line 161 of file GUI_ViewState.h.

void GUI_ViewState::setApplyAspectFlag ( int  onoff)
inline

Definition at line 110 of file GUI_ViewState.h.

void GUI_ViewState::setAspectRatio ( fpreal  value)
inline

Definition at line 114 of file GUI_ViewState.h.

void GUI_ViewState::setDefaultFOV ( fpreal  value)
inline

Definition at line 118 of file GUI_ViewState.h.

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

Definition at line 401 of file GUI_ViewState.h.

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

Definition at line 122 of file GUI_ViewState.h.

void GUI_ViewState::setOrthoFlag ( int  onoff)
inline

Definition at line 102 of file GUI_ViewState.h.

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

Definition at line 285 of file GUI_ViewState.h.

void GUI_ViewState::setProjection ( RE_RenderContext  r)
inline

Definition at line 63 of file GUI_ViewState.h.

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

Definition at line 324 of file GUI_ViewState.h.

void GUI_ViewState::setRotateMatrix ( const UT_Matrix3R mat)
inline

Definition at line 97 of file GUI_ViewState.h.

void GUI_ViewState::setSceneBounds ( const UT_BoundingBoxD bbox)
inline

Definition at line 379 of file GUI_ViewState.h.

void GUI_ViewState::setSelectedObjectBounds ( const UT_BoundingBoxD bbox)
inline

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

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

Definition at line 61 of file GUI_ViewState.h.

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

Definition at line 321 of file GUI_ViewState.h.

void GUI_ViewState::syncViewsWithMain ( )
inline

Definition at line 314 of file GUI_ViewState.h.

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

Definition at line 143 of file GUI_ViewState.h.

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

Definition at line 168 of file GUI_ViewState.h.

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

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


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