Choreonoid  1.5
Public Member Functions | Static Public Member Functions | List of all members
cnoid::SgPerspectiveCamera Class Reference

#include <SceneCameras.h>

Inheritance diagram for cnoid::SgPerspectiveCamera:
cnoid::SgCamera cnoid::SgPreprocessed cnoid::SgNode cnoid::SgObject cnoid::Referenced

Public Member Functions

 SgPerspectiveCamera ()
 
 SgPerspectiveCamera (const SgPerspectiveCamera &org)
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual void accept (SceneVisitor &visitor)
 
double fieldOfView () const
 
void setFieldOfView (double fov)
 
double fovy (double aspectRatio) const
 
- Public Member Functions inherited from cnoid::SgCamera
double nearClipDistance () const
 
void setNearClipDistance (double d)
 
double farClipDistance () const
 
void setFarClipDistance (double d)
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
virtual const BoundingBoxboundingBox () const
 
SgNodecloneNode (SgCloneMap &cloneMap) const
 
virtual bool isGroup () const
 
- Public Member Functions inherited from cnoid::SgObject
const std::string & name () const
 
void setName (const std::string &name)
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::MODIFIED)
 
void addParent (SgObject *parent, bool doNotify=false)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

Static Public Member Functions

static double fovy (double aspectRatio, double fieldOfView)
 
- Static Public Member Functions inherited from cnoid::SgCamera
static Affine3 positionLookingFor (const Vector3 &eye, const Vector3 &direction, const Vector3 &up)
 
static Affine3 positionLookingAt (const Vector3 &eye, const Vector3 &center, const Vector3 &up)
 
template<class Scalar , int Mode, int Options>
static Eigen::Matrix< Scalar, 3, 1 > right (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
template<class Scalar , int Mode, int Options>
static Eigen::Matrix< Scalar, 3, 1 > direction (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
template<class Scalar , int Mode, int Options>
static Eigen::Matrix< Scalar, 3, 1 > up (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 

Additional Inherited Members

- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Protected Member Functions inherited from cnoid::SgCamera
 SgCamera ()
 
 SgCamera (const SgCamera &org)
 
- Protected Member Functions inherited from cnoid::SgPreprocessed
 SgPreprocessed ()
 
 SgPreprocessed (const SgPreprocessed &org)
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
virtual void onUpdated (SgUpdate &update)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Constructor & Destructor Documentation

SgPerspectiveCamera::SgPerspectiveCamera ( )
SgPerspectiveCamera::SgPerspectiveCamera ( const SgPerspectiveCamera org)

Member Function Documentation

void SgPerspectiveCamera::accept ( SceneVisitor visitor)
virtual

Reimplemented from cnoid::SgCamera.

SgObject * SgPerspectiveCamera::clone ( SgCloneMap cloneMap) const
virtual

Reimplemented from cnoid::SgPreprocessed.

double cnoid::SgPerspectiveCamera::fieldOfView ( ) const
inline
double SgPerspectiveCamera::fovy ( double  aspectRatio,
double  fieldOfView 
)
static
Parameters
aspectRatiowidth / height
double cnoid::SgPerspectiveCamera::fovy ( double  aspectRatio) const
inline
void cnoid::SgPerspectiveCamera::setFieldOfView ( double  fov)
inline

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