3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
coat::scripto::CameraShortcut Class Reference

Class for working with the 3DCoat's camera. More...

#include <SCameraShortcut.h>

Classes

class  ViewState
 

Public Member Functions

 CameraShortcut ()
 Constructor for creating of short cut for camera. More...
 
CameraShortcutToEye (const float &eye)
 Set the eye value. More...
 
CameraShortcutOrthoScale (const float &oscale)
 Set the ortho scale value. More...
 
CameraShortcutCenter (const Vec3 &center)
 Set the center of camera. More...
 
CameraShortcutCenterShift (const Vec2 &center)
 Set the shift center of camera. More...
 
CameraShortcutPerspective (const bool &persp)
 Set the perspective existing. More...
 
CameraShortcutSetGridScale (const float sx, const float sy)
 Set the grid scale value. More...
 
CameraShortcutSetGridAngle (const float a)
 Set the grid angle value. More...
 
CameraShortcutSetGridTXY (const float tx, const float ty)
 Set the grid step in x and y axis. More...
 
CameraShortcutGrid2DSize (const int &size)
 Set the grid size. More...
 
CameraShortcutGrid2DSub (const int &sub)
 Set the grid subdivisions. More...
 
CameraShortcutGridStep3D (const int &step)
 Set the grid 3D step. More...
 
CameraShortcutGridStepsCount (const int &stepsCount)
 Set the grid step count. More...
 
CameraShortcutGridSubSections (const int &subsections)
 Set the grid subsections. More...
 
CameraShortcutGridXY (const bool &bxy)
 Set the existing of grid xy. More...
 
CameraShortcutGridYZ (const bool &byz)
 Set the existing of grid yz. More...
 
CameraShortcutGridZX (const bool &bzx)
 Set the existing of grid zx. More...
 
CameraShortcutAutoGrid (const bool &autogrid)
 Set the existing of automatic grid. More...
 
CameraShortcutRareGrid (const bool &raregrid)
 Set the existing of rare grid. More...
 
CameraShortcutNormalGrid (const bool &normalgrid)
 Set the existing of grid xy. More...
 
CameraShortcutDenseGrid (const bool &densegrid)
 Set the existing of dense grid. More...
 
CameraShortcutCustomGrid (const bool &customgrid)
 Set the existing of custom grid. More...
 
CameraShortcutShowGrid (const bool &showgrid)
 Set the existing of show grid. More...
 
CameraShortcutSnap3DGrid (const bool &snapgrid)
 Set the existing of snap 3D grid. More...
 
CameraShortcutShowGrid2D (const bool &showgrid2d)
 Set the show of 2D grid. More...
 
CameraShortcutSnapGrid2D (const bool &snapgrid2)
 Set the existing of snap 2D grid. More...
 
CameraShortcutState (const ViewState &vs)
 Set the camera state. More...
 
CameraShortcutStore ()
 Store of the camera status. More...
 
void Restore () const
 Restore of the camera status. More...
 

Detailed Description

Class for working with the 3DCoat's camera.

Vec3 pos(100,0,0);
camera.Center(pos);
camera.GridStepsCount(10);
camera.Perspective(true);
camera.ShowGrid(true);
Since
4.5.35

Constructor & Destructor Documentation

coat::scripto::CameraShortcut::CameraShortcut ( )
inline

Constructor for creating of short cut for camera.

Member Function Documentation

CameraShortcut& coat::scripto::CameraShortcut::AutoGrid ( const bool &  autogrid)
inline

Set the existing of automatic grid.

CameraShortcut& coat::scripto::CameraShortcut::Center ( const Vec3 center)
inline

Set the center of camera.

CameraShortcut& coat::scripto::CameraShortcut::CenterShift ( const Vec2 center)
inline

Set the shift center of camera.

CameraShortcut& coat::scripto::CameraShortcut::CustomGrid ( const bool &  customgrid)
inline

Set the existing of custom grid.

CameraShortcut& coat::scripto::CameraShortcut::DenseGrid ( const bool &  densegrid)
inline

Set the existing of dense grid.

CameraShortcut& coat::scripto::CameraShortcut::Grid2DSize ( const int &  size)
inline

Set the grid size.

CameraShortcut& coat::scripto::CameraShortcut::Grid2DSub ( const int &  sub)
inline

Set the grid subdivisions.

CameraShortcut& coat::scripto::CameraShortcut::GridStep3D ( const int &  step)
inline

Set the grid 3D step.

CameraShortcut& coat::scripto::CameraShortcut::GridStepsCount ( const int &  stepsCount)
inline

Set the grid step count.

CameraShortcut& coat::scripto::CameraShortcut::GridSubSections ( const int &  subsections)
inline

Set the grid subsections.

CameraShortcut& coat::scripto::CameraShortcut::GridXY ( const bool &  bxy)
inline

Set the existing of grid xy.

CameraShortcut& coat::scripto::CameraShortcut::GridYZ ( const bool &  byz)
inline

Set the existing of grid yz.

CameraShortcut& coat::scripto::CameraShortcut::GridZX ( const bool &  bzx)
inline

Set the existing of grid zx.

CameraShortcut& coat::scripto::CameraShortcut::NormalGrid ( const bool &  normalgrid)
inline

Set the existing of grid xy.

CameraShortcut& coat::scripto::CameraShortcut::OrthoScale ( const float &  oscale)
inline

Set the ortho scale value.

CameraShortcut& coat::scripto::CameraShortcut::Perspective ( const bool &  persp)
inline

Set the perspective existing.

CameraShortcut& coat::scripto::CameraShortcut::RareGrid ( const bool &  raregrid)
inline

Set the existing of rare grid.

void CameraShortcut::Restore ( ) const

Restore of the camera status.

References Restore().

Referenced by Restore().

CameraShortcut& coat::scripto::CameraShortcut::SetGridAngle ( const float  a)
inline

Set the grid angle value.

CameraShortcut& coat::scripto::CameraShortcut::SetGridScale ( const float  sx,
const float  sy 
)
inline

Set the grid scale value.

CameraShortcut& coat::scripto::CameraShortcut::SetGridTXY ( const float  tx,
const float  ty 
)
inline

Set the grid step in x and y axis.

CameraShortcut& coat::scripto::CameraShortcut::ShowGrid ( const bool &  showgrid)
inline

Set the existing of show grid.

CameraShortcut& coat::scripto::CameraShortcut::ShowGrid2D ( const bool &  showgrid2d)
inline

Set the show of 2D grid.

CameraShortcut& coat::scripto::CameraShortcut::Snap3DGrid ( const bool &  snapgrid)
inline

Set the existing of snap 3D grid.

CameraShortcut& coat::scripto::CameraShortcut::SnapGrid2D ( const bool &  snapgrid2)
inline

Set the existing of snap 2D grid.

CameraShortcut & CameraShortcut::State ( const ViewState vs)

Set the camera state.

CameraShortcut & CameraShortcut::Store ( )

Store of the camera status.

References Store().

Referenced by Store().

CameraShortcut& coat::scripto::CameraShortcut::ToEye ( const float &  eye)
inline

Set the eye value.


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