Public Member Functions | Private Member Functions | Private Attributes | List of all members
GLcamera Class Reference

#include <GLcamera.h>

Inheritance diagram for GLcamera:
Inheritance graph
[legend]

Public Member Functions

void addShape (GLshape *i_shape)
 
void computeAbsTransform (double o_trans[16])
 
void computeAbsTransform (double o_trans[16])
 
size_t draw (int i_mode)
 
double far ()
 
double far ()
 
float far ()
 
double fovy ()
 
double fovy ()
 
float fovy ()
 
void getAbsTransform (double o_trans[16])
 
double * getAbsTransform ()
 
void getAbsTransform (double *o_T)
 
void getDepthOfLine (int i_row, float *o_depth)
 
 GLcamera (const OpenHRP::SensorInfo &i_si, GLlink *i_link)
 
 GLcamera (int i_width, int i_height, double i_near, double i_far, double i_fovy)
 
 GLcamera (int i_width, int i_height, double i_near, double i_far, double i_fovy, GLlink *i_link=NULL, int i_id=-1)
 
 GLcamera (const OpenHRP::SensorInfo &i_info, irr::scene::ISceneNode *i_node)
 
 GLcamera (irr::scene::ISceneNode *i_node)
 
int height ()
 
unsigned int height ()
 
int height ()
 
void highlight (bool flag)
 
GLlinklink ()
 
const std::string & name () const
 
const std::string & name () const
 
const char * name ()
 
void name (const std::string &i_name)
 
double near ()
 
double near ()
 
float near ()
 
void render (GLsceneBase *i_scene)
 
hrp::VisionSensorsensor ()
 
void setCameraParameters (irr::scene::ICameraSceneNode *i_camera)
 
void setTransform (double i_trans[16])
 
void setView ()
 
void setView (int w, int h)
 
void setView ()
 
void setViewPoint (double x, double y, double z)
 
void setViewTarget (double x, double y, double z)
 
void updateCameraTransform (irr::scene::ICameraSceneNode *i_camera)
 
int width ()
 
unsigned int width ()
 
int width ()
 
 ~GLcamera ()
 
- Public Member Functions inherited from GLcoordinates
hrp::Vector3 getPosition ()
 
void getPosition (double &x, double &y, double &z)
 
hrp::Matrix33 getRotation ()
 
void getRotation (hrp::Matrix33 &R)
 
double * getTransform ()
 
 GLcoordinates ()
 
void setPosition (double x, double y, double z)
 
template<class T >
void setPosition (const T &p)
 
void setRotation (double r, double p, double y)
 
void setRotation (double ax, double ay, double az, double th)
 
void setRotation (const hrp::Matrix33 &R)
 
void setRotation (const double *R)
 
void setTransform (const double i_trans[12])
 

Private Member Functions

void initFramebuffer (void)
 
void initRenderbuffer (void)
 
void initTexture (void)
 

Private Attributes

double m_absTrans [16]
 
unsigned char * m_colorBuffer
 
double m_far
 
float m_far
 
double m_fovy
 
float m_fovy
 
GLuint m_frameBuffer
 
int m_height
 
unsigned int m_height
 
GLlinkm_link
 
std::string m_name
 
double m_near
 
float m_near
 
irr::scene::ISceneNode * m_node
 
GLuint m_renderBuffer
 
hrp::VisionSensorm_sensor
 
std::vector< GLshape * > m_shapes
 
GLuint m_texture
 
double m_trans [16]
 
double m_viewPoint [3]
 
double m_viewTarget [3]
 
int m_width
 
unsigned int m_width
 

Additional Inherited Members

- Protected Attributes inherited from GLcoordinates
double m_trans [16]
 

Detailed Description

Definition at line 15 of file GLcamera.h.

Constructor & Destructor Documentation

◆ GLcamera() [1/5]

GLcamera::GLcamera ( int  i_width,
int  i_height,
double  i_near,
double  i_far,
double  i_fovy,
GLlink i_link = NULL,
int  i_id = -1 
)

Definition at line 21 of file GLcamera.cpp.

◆ ~GLcamera()

GLcamera::~GLcamera ( )

Definition at line 33 of file GLcamera.cpp.

◆ GLcamera() [2/5]

GLcamera::GLcamera ( const OpenHRP::SensorInfo &  i_si,
GLlink i_link 
)

◆ GLcamera() [3/5]

GLcamera::GLcamera ( int  i_width,
int  i_height,
double  i_near,
double  i_far,
double  i_fovy 
)

Definition at line 36 of file GLmodel.cpp.

◆ GLcamera() [4/5]

GLcamera::GLcamera ( const OpenHRP::SensorInfo &  i_info,
irr::scene::ISceneNode *  i_node 
)

Definition at line 385 of file IrrModel.cpp.

◆ GLcamera() [5/5]

GLcamera::GLcamera ( irr::scene::ISceneNode *  i_node)

Definition at line 568 of file IrrModel.cpp.

Member Function Documentation

◆ addShape()

void GLcamera::addShape ( GLshape i_shape)

Definition at line 276 of file GLcamera.cpp.

◆ computeAbsTransform() [1/2]

void GLcamera::computeAbsTransform ( double  o_trans[16])

◆ computeAbsTransform() [2/2]

void GLcamera::computeAbsTransform ( double  o_trans[16])

Definition at line 63 of file GLcamera.cpp.

◆ draw()

size_t GLcamera::draw ( int  i_mode)

Definition at line 41 of file GLcamera.cpp.

◆ far() [1/3]

double GLcamera::far ( )
inline

Definition at line 18 of file GLmodel.h.

◆ far() [2/3]

float GLcamera::far ( )
inline

Definition at line 28 of file GLcamera.h.

◆ far() [3/3]

float GLcamera::far ( )

◆ fovy() [1/3]

double GLcamera::fovy ( )
inline

Definition at line 19 of file GLmodel.h.

◆ fovy() [2/3]

float GLcamera::fovy ( )
inline

Definition at line 29 of file GLcamera.h.

◆ fovy() [3/3]

float GLcamera::fovy ( )

◆ getAbsTransform() [1/3]

void GLcamera::getAbsTransform ( double  o_trans[16])

Definition at line 74 of file GLmodel.cpp.

◆ getAbsTransform() [2/3]

double * GLcamera::getAbsTransform ( )

Definition at line 108 of file GLcamera.cpp.

◆ getAbsTransform() [3/3]

void GLcamera::getAbsTransform ( double *  o_T)

Definition at line 465 of file IrrModel.cpp.

◆ getDepthOfLine()

void GLcamera::getDepthOfLine ( int  i_row,
float *  o_depth 
)

Definition at line 78 of file GLmodel.cpp.

◆ height() [1/3]

int GLcamera::height ( )
inline

Definition at line 21 of file GLmodel.h.

◆ height() [2/3]

int GLcamera::height ( )
inline

Definition at line 31 of file GLcamera.h.

◆ height() [3/3]

int GLcamera::height ( )

◆ highlight()

void GLcamera::highlight ( bool  flag)

Definition at line 117 of file GLcamera.cpp.

◆ initFramebuffer()

void GLcamera::initFramebuffer ( void  )
private

Definition at line 250 of file GLcamera.cpp.

◆ initRenderbuffer()

void GLcamera::initRenderbuffer ( void  )
private

Definition at line 263 of file GLcamera.cpp.

◆ initTexture()

void GLcamera::initTexture ( void  )
private

Definition at line 236 of file GLcamera.cpp.

◆ link()

GLlink * GLcamera::link ( )

Definition at line 112 of file GLcamera.cpp.

◆ name() [1/4]

const std::string& GLcamera::name ( ) const

◆ name() [2/4]

const std::string & GLcamera::name ( ) const

Definition at line 55 of file GLcamera.cpp.

◆ name() [3/4]

const char * GLcamera::name ( )

Definition at line 450 of file IrrModel.cpp.

◆ name() [4/4]

void GLcamera::name ( const std::string &  i_name)

Definition at line 59 of file GLcamera.cpp.

◆ near() [1/3]

double GLcamera::near ( )
inline

Definition at line 17 of file GLmodel.h.

◆ near() [2/3]

float GLcamera::near ( )
inline

Definition at line 27 of file GLcamera.h.

◆ near() [3/3]

float GLcamera::near ( )

◆ render()

void GLcamera::render ( GLsceneBase i_scene)

Definition at line 124 of file GLcamera.cpp.

◆ sensor()

VisionSensor * GLcamera::sensor ( )

Definition at line 271 of file GLcamera.cpp.

◆ setCameraParameters()

void GLcamera::setCameraParameters ( irr::scene::ICameraSceneNode *  i_camera)

Definition at line 396 of file IrrModel.cpp.

◆ setTransform()

void GLcamera::setTransform ( double  i_trans[16])

Definition at line 70 of file GLmodel.cpp.

◆ setView() [1/3]

void GLcamera::setView ( )

◆ setView() [2/3]

void GLcamera::setView ( int  w,
int  h 
)

Definition at line 77 of file GLcamera.cpp.

◆ setView() [3/3]

void GLcamera::setView ( )

Definition at line 73 of file GLcamera.cpp.

◆ setViewPoint()

void GLcamera::setViewPoint ( double  x,
double  y,
double  z 
)

Definition at line 98 of file GLcamera.cpp.

◆ setViewTarget()

void GLcamera::setViewTarget ( double  x,
double  y,
double  z 
)

Definition at line 103 of file GLcamera.cpp.

◆ updateCameraTransform()

void GLcamera::updateCameraTransform ( irr::scene::ICameraSceneNode *  i_camera)

Definition at line 438 of file IrrModel.cpp.

◆ width() [1/3]

int GLcamera::width ( )
inline

Definition at line 20 of file GLmodel.h.

◆ width() [2/3]

int GLcamera::width ( )
inline

Definition at line 30 of file GLcamera.h.

◆ width() [3/3]

int GLcamera::width ( )

Member Data Documentation

◆ m_absTrans

double GLcamera::m_absTrans
private

Definition at line 46 of file GLcamera.h.

◆ m_colorBuffer

unsigned char* GLcamera::m_colorBuffer
private

Definition at line 54 of file GLcamera.h.

◆ m_far [1/2]

double GLcamera::m_far
private

Definition at line 48 of file GLcamera.h.

◆ m_far [2/2]

float GLcamera::m_far
private

Definition at line 49 of file IrrModel.h.

◆ m_fovy [1/2]

double GLcamera::m_fovy
private

Definition at line 48 of file GLcamera.h.

◆ m_fovy [2/2]

float GLcamera::m_fovy
private

Definition at line 49 of file IrrModel.h.

◆ m_frameBuffer

GLuint GLcamera::m_frameBuffer
private

Definition at line 52 of file GLcamera.h.

◆ m_height [1/2]

int GLcamera::m_height
private

Definition at line 28 of file GLmodel.h.

◆ m_height [2/2]

int GLcamera::m_height
private

Definition at line 49 of file GLcamera.h.

◆ m_link

GLlink * GLcamera::m_link
private

Definition at line 47 of file GLcamera.h.

◆ m_name

std::string GLcamera::m_name
private

Definition at line 45 of file GLcamera.h.

◆ m_near [1/2]

double GLcamera::m_near
private

Definition at line 48 of file GLcamera.h.

◆ m_near [2/2]

float GLcamera::m_near
private

Definition at line 49 of file IrrModel.h.

◆ m_node

irr::scene::ISceneNode* GLcamera::m_node
private

Definition at line 48 of file IrrModel.h.

◆ m_renderBuffer

GLuint GLcamera::m_renderBuffer
private

Definition at line 52 of file GLcamera.h.

◆ m_sensor

hrp::VisionSensor* GLcamera::m_sensor
private

Definition at line 53 of file GLcamera.h.

◆ m_shapes

std::vector<GLshape *> GLcamera::m_shapes
private

Definition at line 51 of file GLcamera.h.

◆ m_texture

GLuint GLcamera::m_texture
private

Definition at line 52 of file GLcamera.h.

◆ m_trans

double GLcamera::m_trans[16]
private

Definition at line 25 of file GLmodel.h.

◆ m_viewPoint

double GLcamera::m_viewPoint[3]
private

Definition at line 50 of file GLcamera.h.

◆ m_viewTarget

double GLcamera::m_viewTarget[3]
private

Definition at line 50 of file GLcamera.h.

◆ m_width [1/2]

int GLcamera::m_width
private

Definition at line 28 of file GLmodel.h.

◆ m_width [2/2]

int GLcamera::m_width
private

Definition at line 49 of file GLcamera.h.


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


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Sat Dec 17 2022 03:52:22