Jive reference manual
List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions
jem::gl::Camera3D Class Reference

#include <jem/gl/Camera3D.h>

Inheritance diagram for jem::gl::Camera3D:
Inheritance graph

Public Member Functions

 Camera3D (const String &name="camera", const Ref< GfxNode > &child=NIL)
 
virtual void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
virtual void listProps (const Properties &props) const
 
virtual void reset ()
 
virtual void lookAtBox (const Box &box)
 
virtual void getVisibleBox (Box &box) const
 
virtual void translateObj (GfxNode &node, GLdouble dx, GLdouble dy, GLdouble dz) const
 
virtual GLdouble setZoom (GLdouble zoom)
 
virtual void jitter (Transform &proj, GLdouble dx, GLdouble dy) const
 
virtual void updateZRange ()
 
void setZRange (GLdouble clip0, GLdouble clip1)
 
GLdouble getNearClip () const
 
GLdouble getFarClip () const
 
void setViewAngle (GLdouble fovy)
 
GLdouble getViewAngle () const
 
- Public Member Functions inherited from jem::gl::StdCamera
 StdCamera (const String &name="camera", const Ref< GfxNode > &child=NIL)
 
virtual void setChild (const Ref< GfxNode > &child)
 
virtual Ref< GfxNodegetChild () const
 
virtual GfxNodefindNode (const String &name) const
 
virtual bool takeAction (const String &action, const Properties &params)
 
virtual bool takeGLAction (GfxContext &gtx, int action, const Properties &params)
 
virtual void getBBox (Box &box) const
 
virtual void getBareBBox (Box &box) const
 
virtual void getVisibility (bool &viz, Box &vbox, const Transform &proj) const
 
virtual Transform getTransform () const
 
virtual void setTransform (const Transform &tr)
 
virtual Rect getViewport () const
 
virtual Transform getProjection () const
 
virtual GLdouble getZoom () const
 
int setQuality (int level)
 
int getQuality () const
 
void setOptions (int options)
 
int getOptions () const
 
- Public Member Functions inherited from jem::gl::Camera
 Camera (const String &name="")
 
virtual bool isOrtho () const
 
void lookAtObj (const GfxNode &obj)
 
void lookAtRect (GfxContext &gtx, const Rect &rect)
 
GLdouble zoomIn (GLdouble step=1.0)
 
GLdouble zoomOut (GLdouble step=1.0)
 
- Public Member Functions inherited from jem::gl::GfxNode
 GfxNode (const String &name="")
 
virtual String getContext () const
 
virtual bool takeNRAction (const String &action, const Properties &params)
 
GfxNodegetParent () const
 
void setParent (GfxNode *parent)
 
void clearParent ()
 
- Public Member Functions inherited from jem::NamedObject
 NamedObject (const String &name="")
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
String getName () const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Attributes

static const GLdouble MIN_ZOOM
 
static const GLdouble MAX_ZOOM
 
static const GLdouble MIN_ANGLE
 
static const GLdouble MAX_ANGLE
 
static const GLdouble VIEW_ANGLE
 
static const GLdouble MIN_FAR
 
static const GLdouble MAX_FAR
 
static const GLdouble MIN_NEAR
 
static const GLdouble MAX_NEAR
 
static const GLdouble FAR_CLIP
 
static const GLdouble NEAR_CLIP
 
- Static Public Attributes inherited from jem::gl::StdCamera
static const int MAX_QUALITY
 
static const int AUTO_QUALITY
 

Protected Member Functions

virtual ~Camera3D ()
 
virtual Transform newProjection_ () const
 
- Protected Member Functions inherited from jem::gl::StdCamera
virtual ~StdCamera ()
 
- Protected Member Functions inherited from jem::gl::Camera
virtual ~Camera ()
 
- Protected Member Functions inherited from jem::gl::GfxNode
virtual ~GfxNode ()
 
- Protected Member Functions inherited from jem::NamedObject
virtual ~NamedObject ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::gl::Pivotable
virtual ~Pivotable ()
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 
- Protected Member Functions inherited from jem::gl::Transformable
virtual ~Transformable ()
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::NamedObject
static String makeContext (const String &kind, const String &name)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Protected Attributes inherited from jem::gl::StdCamera
Ref< GfxNodechild_
 
Transform proj_
 
Transform transfm_
 
GLdouble zoom_
 
Rect vport_
 
int options_
 
bool newProj_
 
- Protected Attributes inherited from jem::NamedObject
String myName_
 

Constructor & Destructor Documentation

jem::gl::Camera3D::Camera3D ( const String name = "camera",
const Ref< GfxNode > &  child = NIL 
)
explicit
virtual jem::gl::Camera3D::~Camera3D ( )
protectedvirtual

Member Function Documentation

virtual void jem::gl::Camera3D::configure ( const Properties props)
virtual

Reimplemented from jem::gl::StdCamera.

virtual void jem::gl::Camera3D::getConfig ( const Properties props) const
virtual

Reimplemented from jem::gl::StdCamera.

virtual void jem::gl::Camera3D::listProps ( const Properties props) const
virtual

Reimplemented from jem::gl::StdCamera.

virtual void jem::gl::Camera3D::reset ( )
virtual

Reimplemented from jem::gl::StdCamera.

virtual void jem::gl::Camera3D::lookAtBox ( const Box box)
virtual

Implements jem::gl::Camera.

virtual void jem::gl::Camera3D::getVisibleBox ( Box box) const
virtual

Implements jem::gl::Camera.

virtual void jem::gl::Camera3D::translateObj ( GfxNode node,
GLdouble  dx,
GLdouble  dy,
GLdouble  dz 
) const
virtual

Reimplemented from jem::gl::StdCamera.

virtual GLdouble jem::gl::Camera3D::setZoom ( GLdouble  zoom)
virtual

Reimplemented from jem::gl::StdCamera.

virtual void jem::gl::Camera3D::jitter ( Transform proj,
GLdouble  dx,
GLdouble  dy 
) const
virtual

Implements jem::gl::Camera.

virtual void jem::gl::Camera3D::updateZRange ( )
virtual

Reimplemented from jem::gl::Camera.

void jem::gl::Camera3D::setZRange ( GLdouble  clip0,
GLdouble  clip1 
)
GLdouble jem::gl::Camera3D::getNearClip ( ) const
GLdouble jem::gl::Camera3D::getFarClip ( ) const
void jem::gl::Camera3D::setViewAngle ( GLdouble  fovy)
GLdouble jem::gl::Camera3D::getViewAngle ( ) const
virtual Transform jem::gl::Camera3D::newProjection_ ( ) const
protectedvirtual

Implements jem::gl::StdCamera.

Member Data Documentation

const GLdouble jem::gl::Camera3D::MIN_ZOOM
static
const GLdouble jem::gl::Camera3D::MAX_ZOOM
static
const GLdouble jem::gl::Camera3D::MIN_ANGLE
static
const GLdouble jem::gl::Camera3D::MAX_ANGLE
static
const GLdouble jem::gl::Camera3D::VIEW_ANGLE
static
const GLdouble jem::gl::Camera3D::MIN_FAR
static
const GLdouble jem::gl::Camera3D::MAX_FAR
static
const GLdouble jem::gl::Camera3D::MIN_NEAR
static
const GLdouble jem::gl::Camera3D::MAX_NEAR
static
const GLdouble jem::gl::Camera3D::FAR_CLIP
static
const GLdouble jem::gl::Camera3D::NEAR_CLIP
static