Blender V2.61 - r43446
Classes | Public Member Functions | Public Attributes | Protected Attributes

KX_Dome Class Reference

class for render 3d scene More...

#include <KX_Dome.h>

List of all members.

Classes

struct  DomeFace
struct  WarpMeshNode

Public Member Functions

 KX_Dome (RAS_ICanvas *m_canvas, RAS_IRasterizer *m_rasterizer, RAS_IRenderTools *m_rendertools, KX_KetsjiEngine *m_engine, short res, short mode, short angle, float resbuf, short tilt, struct Text *warptext)
 constructor
virtual ~KX_Dome (void)
 destructor
bool ParseWarpMesh (STR_String text)
int GetNumberRenders ()
void RenderDome (void)
void RenderDomeFrame (KX_Scene *scene, KX_Camera *cam, int i)
void BindImages (int i)
void SetViewPort (GLuint viewport[4])
void CalculateFrustum (KX_Camera *cam)
void RotateCamera (KX_Camera *cam, int i)
void CreateMeshDome180 (void)
void CreateMeshDome250 (void)
void CreateMeshPanorama (void)
void SplitFace (vector< DomeFace > &face, int *nfaces)
void FlattenDome (MT_Vector3 verts[3])
void FlattenPanorama (MT_Vector3 verts[3])
void GLDrawTriangles (vector< DomeFace > &face, int nfaces)
void GLDrawWarpQuads (void)
void Draw (void)
void DrawDomeFisheye (void)
void DrawEnvMap (void)
void DrawPanorama (void)
void DrawDomeWarped (void)
void CreateGLImages (void)
void ClearGLImages (void)
bool CreateDL (void)
void ClearDL (void)
bool CreateFBO (void)
void ClearFBO (void)
void CalculateCameraOrientation ()
void CalculateImageSize ()

Public Attributes

bool dlistSupported
bool fboSupported
GLuint domefacesId [7]
GLuint dlistId
struct {
   bool   usemesh
   int   mode
   int   n_width
   int   n_height
   int   imagesize
   int   bufferwidth
   int   bufferheight
   GLuint   fboId
   vector< vector< WarpMeshNode > >   nodes
warp
vector< DomeFacecubetop
vector< DomeFacecubebottom
vector< DomeFacecuberight
vector< DomeFacecubeleft
vector< DomeFacecubefront
vector< DomeFacecubeback
vector< DomeFacecubeleftback
vector< DomeFacecuberightback
int nfacestop
int nfacesbottom
int nfacesleft
int nfacesright
int nfacesfront
int nfacesback
int nfacesleftback
int nfacesrightback
int canvaswidth
int canvasheight

Protected Attributes

int m_drawingmode
int m_imagesize
int m_buffersize
int m_numfaces
int m_numimages
short m_resolution
short m_mode
short m_angle
float m_radangle
float m_resbuffer
short m_tilt
RAS_Rect m_viewport
MT_Matrix4x4 m_projmat
MT_Matrix3x3 m_locRot [6]
KX_Scenem_scene
 rendered scene
RAS_ICanvasm_canvas
 canvas
RAS_IRasterizerm_rasterizer
 rasterizer
RAS_IRenderToolsm_rendertools
 render tools
KX_KetsjiEnginem_engine
 engine

Detailed Description

class for render 3d scene

Definition at line 56 of file KX_Dome.h.


Constructor & Destructor Documentation

KX_Dome::KX_Dome ( RAS_ICanvas m_canvas,
RAS_IRasterizer m_rasterizer,
RAS_IRenderTools m_rendertools,
KX_KetsjiEngine m_engine,
short  res,
short  mode,
short  angle,
float  resbuf,
short  tilt,
struct Text warptext 
)
KX_Dome::~KX_Dome ( void  ) [virtual]

destructor

Definition at line 168 of file KX_Dome.cpp.

References ClearGLImages(), dlistId, dlistSupported, fboSupported, m_numimages, and warp.


Member Function Documentation

void KX_Dome::BindImages ( int  i)
void KX_Dome::CalculateCameraOrientation ( )
void KX_Dome::CalculateFrustum ( KX_Camera cam)
void KX_Dome::CalculateImageSize ( void  )
void KX_Dome::ClearDL ( void  )
void KX_Dome::ClearFBO ( void  )
void KX_Dome::ClearGLImages ( void  )

Definition at line 218 of file KX_Dome.cpp.

References domefacesId, and m_numimages.

Referenced by ~KX_Dome().

bool KX_Dome::CreateDL ( void  )
bool KX_Dome::CreateFBO ( void  )

Definition at line 334 of file KX_Dome.cpp.

References domefacesId, m_numfaces, and warp.

Referenced by KX_Dome().

void KX_Dome::CreateGLImages ( void  )

Definition at line 192 of file KX_Dome.cpp.

References domefacesId, GL_CLAMP_TO_EDGE, m_imagesize, m_numfaces, m_numimages, and warp.

Referenced by KX_Dome().

void KX_Dome::CreateMeshDome180 ( void  )
void KX_Dome::CreateMeshDome250 ( void  )
void KX_Dome::CreateMeshPanorama ( void  )
void KX_Dome::Draw ( void  )
void KX_Dome::DrawDomeFisheye ( void  )
void KX_Dome::DrawDomeWarped ( void  )
void KX_Dome::DrawEnvMap ( void  )

Definition at line 1654 of file KX_Dome.cpp.

References domefacesId, RAS_Rect::GetRight(), RAS_Rect::GetTop(), m_buffersize, m_imagesize, m_viewport, and warp.

Referenced by Draw().

void KX_Dome::DrawPanorama ( void  )
void KX_Dome::FlattenDome ( MT_Vector3  verts[3])

Definition at line 1318 of file KX_Dome.cpp.

References KDL::atan2(), cos(), i, m_radangle, sin(), and sqrt().

Referenced by CreateMeshDome180(), and CreateMeshDome250().

void KX_Dome::FlattenPanorama ( MT_Vector3  verts[3])

Definition at line 1341 of file KX_Dome.cpp.

References KDL::atan2(), i, and MT_PI().

Referenced by CreateMeshPanorama().

int KX_Dome::GetNumberRenders ( ) [inline]

Definition at line 115 of file KX_Dome.h.

References m_numfaces.

Referenced by KX_KetsjiEngine::RenderDome().

void KX_Dome::GLDrawTriangles ( vector< DomeFace > &  face,
int  nfaces 
)

Definition at line 374 of file KX_Dome.cpp.

References i.

Referenced by CreateDL(), DrawDomeFisheye(), and DrawPanorama().

void KX_Dome::GLDrawWarpQuads ( void  )

Definition at line 387 of file KX_Dome.cpp.

References i, if(), and warp.

Referenced by CreateDL(), and DrawDomeWarped().

bool KX_Dome::ParseWarpMesh ( STR_String  text)

Definition at line 454 of file KX_Dome.cpp.

References STR_String::Explode(), i, and warp.

Referenced by KX_Dome().

void KX_Dome::RenderDome ( void  )
void KX_Dome::RenderDomeFrame ( KX_Scene scene,
KX_Camera cam,
int  i 
)
void KX_Dome::RotateCamera ( KX_Camera cam,
int  i 
)
void KX_Dome::SetViewPort ( GLuint  viewport[4])
void KX_Dome::SplitFace ( vector< DomeFace > &  face,
int *  nfaces 
)

Definition at line 1379 of file KX_Dome.cpp.

References i.

Referenced by CreateMeshDome180(), CreateMeshDome250(), and CreateMeshPanorama().


Member Data Documentation

Definition at line 102 of file KX_Dome.h.

Definition at line 102 of file KX_Dome.h.

Definition at line 156 of file KX_Dome.h.

Referenced by CalculateImageSize(), and SetViewPort().

Definition at line 155 of file KX_Dome.h.

Referenced by CalculateImageSize(), and SetViewPort().

Definition at line 109 of file KX_Dome.h.

Definition at line 109 of file KX_Dome.h.

Referenced by CreateDL(), CreateMeshDome250(), DrawDomeFisheye(), and KX_Dome().

Definition at line 110 of file KX_Dome.h.

Referenced by CreateDL(), CreateMeshPanorama(), DrawPanorama(), and KX_Dome().

Definition at line 110 of file KX_Dome.h.

Referenced by CreateDL(), CreateMeshPanorama(), DrawPanorama(), and KX_Dome().

Definition at line 85 of file KX_Dome.h.

Referenced by CreateDL(), DrawDomeFisheye(), DrawDomeWarped(), DrawPanorama(), and ~KX_Dome().

Definition at line 80 of file KX_Dome.h.

Referenced by DrawDomeFisheye(), DrawDomeWarped(), DrawPanorama(), KX_Dome(), and ~KX_Dome().

Definition at line 103 of file KX_Dome.h.

Definition at line 81 of file KX_Dome.h.

Referenced by Draw(), KX_Dome(), and ~KX_Dome().

Definition at line 101 of file KX_Dome.h.

short KX_Dome::m_angle [protected]
int KX_Dome::m_buffersize [protected]

canvas

Definition at line 183 of file KX_Dome.h.

Referenced by CalculateImageSize(), Draw(), KX_KetsjiEngine::GetCanvas(), and RenderDomeFrame().

int KX_Dome::m_drawingmode [protected]

engine

Definition at line 189 of file KX_Dome.h.

int KX_Dome::m_imagesize [protected]

Definition at line 177 of file KX_Dome.h.

Referenced by CalculateCameraOrientation(), RenderDomeFrame(), and RotateCamera().

short KX_Dome::m_mode [protected]

Definition at line 167 of file KX_Dome.h.

Referenced by CalculateCameraOrientation(), CreateDL(), Draw(), DrawDomeFisheye(), and KX_Dome().

int KX_Dome::m_numfaces [protected]
int KX_Dome::m_numimages [protected]

Definition at line 164 of file KX_Dome.h.

Referenced by ClearGLImages(), CreateDL(), CreateGLImages(), KX_Dome(), and ~KX_Dome().

Definition at line 175 of file KX_Dome.h.

Referenced by CalculateFrustum(), and RenderDomeFrame().

float KX_Dome::m_radangle [protected]

Definition at line 169 of file KX_Dome.h.

Referenced by CreateMeshDome180(), CreateMeshDome250(), and FlattenDome().

rasterizer

Definition at line 185 of file KX_Dome.h.

Referenced by CalculateFrustum(), KX_KetsjiEngine::GetRasterizer(), RenderDomeFrame(), and RotateCamera().

render tools

Definition at line 187 of file KX_Dome.h.

Referenced by KX_KetsjiEngine::GetRenderTools(), and RenderDomeFrame().

float KX_Dome::m_resbuffer [protected]

Definition at line 170 of file KX_Dome.h.

Referenced by CalculateImageSize().

short KX_Dome::m_resolution [protected]

Definition at line 166 of file KX_Dome.h.

Referenced by CreateMeshDome180(), CreateMeshDome250(), and CreateMeshPanorama().

KX_Scene* KX_Dome::m_scene [protected]

rendered scene

Definition at line 180 of file KX_Dome.h.

short KX_Dome::m_tilt [protected]

Definition at line 171 of file KX_Dome.h.

Referenced by CalculateCameraOrientation().

Definition at line 99 of file KX_Dome.h.

Definition at line 100 of file KX_Dome.h.

Definition at line 100 of file KX_Dome.h.

Definition at line 112 of file KX_Dome.h.

Definition at line 112 of file KX_Dome.h.

Referenced by CreateDL(), CreateMeshDome250(), and DrawDomeFisheye().

Definition at line 113 of file KX_Dome.h.

Referenced by CreateDL(), CreateMeshPanorama(), and DrawPanorama().

Definition at line 113 of file KX_Dome.h.

Referenced by CreateDL(), CreateMeshPanorama(), and DrawPanorama().

vector<vector <WarpMeshNode> > KX_Dome::nodes

Definition at line 104 of file KX_Dome.h.

Definition at line 98 of file KX_Dome.h.

struct { ... } KX_Dome::warp

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