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

#include <jem/gl/OrthoCamera.h>

Inheritance diagram for jem::gl::OrthoCamera:
Inheritance graph

Public Member Functions

 OrthoCamera (const String &name="camera", const Ref< GfxNode > &child=NIL)
 
virtual bool isOrtho () 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
 
void setRange (GLdouble range)
 
GLdouble getRange () const
 
virtual void updateZRange ()
 
void setZRange (GLdouble clip0, GLdouble clip1)
 
GLdouble getNearClip () const
 
GLdouble getFarClip () 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 void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
virtual void listProps (const Properties &props) 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="")
 
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 RANGE
 
- Static Public Attributes inherited from jem::gl::StdCamera
static const int MAX_QUALITY
 
static const int AUTO_QUALITY
 

Protected Member Functions

virtual ~OrthoCamera ()
 
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 ()
 

Protected Attributes

GLdouble range_
 
GLdouble nearClip_
 
GLdouble farClip_
 
- 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_
 

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...
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool jem::gl::OrthoCamera::isOrtho ( ) const
virtual

Reimplemented from jem::gl::Camera.

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

Reimplemented from jem::gl::StdCamera.

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

Implements jem::gl::Camera.

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

Implements jem::gl::Camera.

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

Reimplemented from jem::gl::StdCamera.

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

Reimplemented from jem::gl::StdCamera.

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

Implements jem::gl::Camera.

void jem::gl::OrthoCamera::setRange ( GLdouble  range)
GLdouble jem::gl::OrthoCamera::getRange ( ) const
virtual void jem::gl::OrthoCamera::updateZRange ( )
virtual

Reimplemented from jem::gl::Camera.

void jem::gl::OrthoCamera::setZRange ( GLdouble  clip0,
GLdouble  clip1 
)
GLdouble jem::gl::OrthoCamera::getNearClip ( ) const
GLdouble jem::gl::OrthoCamera::getFarClip ( ) const
virtual Transform jem::gl::OrthoCamera::newProjection_ ( ) const
protectedvirtual

Implements jem::gl::StdCamera.

Member Data Documentation

const GLdouble jem::gl::OrthoCamera::MIN_ZOOM
static
const GLdouble jem::gl::OrthoCamera::MAX_ZOOM
static
const GLdouble jem::gl::OrthoCamera::RANGE
static
GLdouble jem::gl::OrthoCamera::range_
protected
GLdouble jem::gl::OrthoCamera::nearClip_
protected
GLdouble jem::gl::OrthoCamera::farClip_
protected