IGS_Controller Class Reference

#include <basic/geometry/IGS/IGS_Controller.h>

Collaboration diagram for IGS_Controller:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IGS_Controller ()
 ~IGS_Controller ()
void BeginFrame () const
Segment ConvertMouseClick (const int x, const int y) const
void DoLighting () const
void EndFrame () const
unsigned int FrameNumber () const
Vector4 GetCameraDirection () const
float GetSilhouetteEdgeWidth () const
enumGBufferTypes GetRenderStyle () const
double GetWindowXMax () const
double GetWindowXMin () const
double GetWindowYMax () const
double GetWindowYMin () const
void Process ()
void RegisterInitialWindow (HWND hwnd)
void ScreenCapture ()
void SetCameraLookat (const Vector4 &vector)
void SetCameraPosition (const Vector4 &vector)
void SetClearColor (IGS_Color &color)
void SetRenderSilhouettes (bool onOff)
void SetRenderStyle (enumGBufferTypes style)
void SetSilhouetteEdgeWidth (const float width)
bool SettingLightingEnabled () const
bool SettingNormalsRelativeToCamera () const
bool SettingRenderNormals () const
bool SettingRenderNormalsAsColors () const
bool SettingRenderSilhouettes () const
void SetWindowResolution (const int xres, const int yres)
void SetWindowRect (const double xMin, const double xMax, const double yMin, const double yMax, const double zMin=-100, const double zMax=100)

Public Attributes

IGS_ImageFloat3 mGbufferColor
IGS_ImageFloat1 mGbufferDepth

Protected Attributes

unsigned int mFrameNumber
Vector4 mCameraEye
Vector4 mCameraTarget
Vector4 mCameraUp
unsigned char * mColorDefault
GLclampf mColorClear [4]
GLbitfield mGlClearBits
bool mSettingAlphaBlendingOn
bool mSettingAnimationOn
bool m_SettingAntiAliasingOn
int mSettingDebugMessageLevel
bool mSettingDepthTestingOn
bool mSettingDoubleBufferingOn
bool mSettingLightingEnabled
bool mSettingNormalsRelativeToCamera
float m_SettingPointSize
bool mSettingRenderNormals
bool mSettingRenderNormalsAsColors
bool mSettingRenderSilhouettes
enumGBufferTypes mSettingRenderStyle
GLenum mSettingShadingModel
float mSettingSilhouetteEdgeWidth
bool mSettingTexturingOn
double m_SettingWindowXmin
double m_SettingWindowXmax
double m_SettingWindowYmin
double m_SettingWindowYmax
double m_SettingWindowZmin
double m_SettingWindowZmax
bool mStateScreenCaptureDone
int mWindowResolutionX
int mWindowResolutionY

Detailed Description

Definition at line 28 of file IGS_Controller.h.


Constructor & Destructor Documentation

IGS_Controller::IGS_Controller  ) 
 

Definition at line 29 of file IGS_Controller.cpp.

References gDefaultClearA, gDefaultClearB, gDefaultClearG, gDefaultClearR, mColorClear, mColorDefault, mGbufferColor, mGbufferDepth, IGS_Image::SetFormat(), SetRenderStyle(), and IGS_Image::SetResolution().

Here is the call graph for this function:

IGS_Controller::~IGS_Controller  ) 
 

Definition at line 93 of file IGS_Controller.cpp.

References mColorDefault.


Member Function Documentation

void IGS_Controller::BeginFrame  )  const
 

Definition at line 103 of file IGS_Controller.cpp.

References DoLighting(), FALSE, FrameNumber(), IJG_Assert, m_SettingAntiAliasingOn, m_SettingPointSize, m_SettingWindowXmax, m_SettingWindowXmin, m_SettingWindowYmax, m_SettingWindowYmin, m_SettingWindowZmax, m_SettingWindowZmin, mCameraEye, mCameraTarget, mCameraUp, mColorDefault, mFrameNumber, mGlClearBits, mSettingDebugMessageLevel, mSettingDepthTestingOn, mSettingShadingModel, mWindowResolutionX, and mWindowResolutionY.

Here is the call graph for this function:

Segment IGS_Controller::ConvertMouseClick const int  x,
const int  y
const
 

Definition at line 259 of file IGS_Controller.cpp.

References m_SettingWindowXmax, m_SettingWindowXmin, m_SettingWindowYmax, m_SettingWindowYmin, mCameraEye, mWindowResolutionX, and mWindowResolutionY.

void IGS_Controller::DoLighting  )  const
 

Definition at line 310 of file IGS_Controller.cpp.

Referenced by BeginFrame().

void IGS_Controller::EndFrame  )  const
 

Definition at line 343 of file IGS_Controller.cpp.

References FALSE, FrameNumber(), mSettingDebugMessageLevel, and TRUE.

Here is the call graph for this function:

unsigned int IGS_Controller::FrameNumber  )  const
 

Definition at line 389 of file IGS_Controller.cpp.

References mFrameNumber.

Referenced by BeginFrame(), and EndFrame().

Vector4 IGS_Controller::GetCameraDirection  )  const
 

Definition at line 399 of file IGS_Controller.cpp.

Referenced by IGS_Mesh::Render().

enumGBufferTypes IGS_Controller::GetRenderStyle  )  const
 

Definition at line 409 of file IGS_Controller.cpp.

References mSettingRenderStyle.

float IGS_Controller::GetSilhouetteEdgeWidth  )  const
 

Definition at line 419 of file IGS_Controller.cpp.

References mSettingSilhouetteEdgeWidth.

double IGS_Controller::GetWindowXMax  )  const
 

Definition at line 429 of file IGS_Controller.cpp.

References m_SettingWindowXmax.

double IGS_Controller::GetWindowXMin  )  const
 

Definition at line 439 of file IGS_Controller.cpp.

References m_SettingWindowXmin.

double IGS_Controller::GetWindowYMax  )  const
 

Definition at line 449 of file IGS_Controller.cpp.

References m_SettingWindowYmax.

double IGS_Controller::GetWindowYMin  )  const
 

Definition at line 459 of file IGS_Controller.cpp.

References m_SettingWindowYmin.

void IGS_Controller::Process  ) 
 

Definition at line 469 of file IGS_Controller.cpp.

void IGS_Controller::RegisterInitialWindow HWND  hwnd  ) 
 

Definition at line 479 of file IGS_Controller.cpp.

References TRUE.

void IGS_Controller::ScreenCapture  ) 
 

Definition at line 523 of file IGS_Controller.cpp.

References FALSE, mGbufferColor, mGbufferDepth, mStateScreenCaptureDone, and IGS_Image::ScreenCapture().

Here is the call graph for this function:

void IGS_Controller::SetCameraLookat const Vector4 vector  ) 
 

Definition at line 546 of file IGS_Controller.cpp.

References mCameraTarget.

void IGS_Controller::SetCameraPosition const Vector4 vector  ) 
 

Definition at line 556 of file IGS_Controller.cpp.

References mCameraEye.

void IGS_Controller::SetClearColor IGS_Color color  ) 
 

Definition at line 566 of file IGS_Controller.cpp.

References IGS_Color::b, IGS_Color::g, mColorClear, and IGS_Color::r.

void IGS_Controller::SetRenderSilhouettes bool  onOff  ) 
 

Definition at line 579 of file IGS_Controller.cpp.

References mSettingRenderSilhouettes.

void IGS_Controller::SetRenderStyle enumGBufferTypes  style  ) 
 

Definition at line 589 of file IGS_Controller.cpp.

References G_COLOR, G_DEPTH, G_NORMAL, G_NORMAL_WRT_CAMERA, G_PHOTOREALISTIC, G_SILHOUETTE_ONLY, G_UV, gDefaultClearA, gDefaultClearB, gDefaultClearG, gDefaultClearR, mColorClear, mColorDefault, mSettingLightingEnabled, mSettingNormalsRelativeToCamera, mSettingRenderNormals, mSettingRenderNormalsAsColors, and mSettingRenderStyle.

Referenced by IGS_Controller().

void IGS_Controller::SetSilhouetteEdgeWidth const float  width  ) 
 

Definition at line 661 of file IGS_Controller.cpp.

References mSettingSilhouetteEdgeWidth.

bool IGS_Controller::SettingLightingEnabled  )  const
 

Definition at line 671 of file IGS_Controller.cpp.

References mSettingLightingEnabled.

bool IGS_Controller::SettingNormalsRelativeToCamera  )  const
 

Definition at line 681 of file IGS_Controller.cpp.

References mSettingNormalsRelativeToCamera.

bool IGS_Controller::SettingRenderNormals  )  const
 

Definition at line 691 of file IGS_Controller.cpp.

References mSettingRenderNormals.

Referenced by IGS_Mesh::Render().

bool IGS_Controller::SettingRenderNormalsAsColors  )  const
 

Definition at line 701 of file IGS_Controller.cpp.

References mSettingRenderNormalsAsColors.

bool IGS_Controller::SettingRenderSilhouettes  )  const
 

Definition at line 711 of file IGS_Controller.cpp.

References mSettingRenderSilhouettes.

Referenced by IGS_Mesh::Render().

void IGS_Controller::SetWindowRect const double  xMin,
const double  xMax,
const double  yMin,
const double  yMax,
const double  zMin = -100,
const double  zMax = 100
 

Definition at line 717 of file IGS_Controller.cpp.

void IGS_Controller::SetWindowResolution const int  xres,
const int  yres
 

Definition at line 739 of file IGS_Controller.cpp.

References mGbufferColor, mGbufferDepth, mWindowResolutionX, mWindowResolutionY, and IGS_Image::SetResolution().

Here is the call graph for this function:


Member Data Documentation

bool IGS_Controller::m_SettingAntiAliasingOn [protected]
 

Definition at line 96 of file IGS_Controller.h.

Referenced by BeginFrame().

float IGS_Controller::m_SettingPointSize [protected]
 

Definition at line 102 of file IGS_Controller.h.

Referenced by BeginFrame().

double IGS_Controller::m_SettingWindowXmax [protected]
 

Definition at line 113 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and GetWindowXMax().

double IGS_Controller::m_SettingWindowXmin [protected]
 

Definition at line 112 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and GetWindowXMin().

double IGS_Controller::m_SettingWindowYmax [protected]
 

Definition at line 115 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and GetWindowYMax().

double IGS_Controller::m_SettingWindowYmin [protected]
 

Definition at line 114 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and GetWindowYMin().

double IGS_Controller::m_SettingWindowZmax [protected]
 

Definition at line 117 of file IGS_Controller.h.

Referenced by BeginFrame().

double IGS_Controller::m_SettingWindowZmin [protected]
 

Definition at line 116 of file IGS_Controller.h.

Referenced by BeginFrame().

Vector4 IGS_Controller::mCameraEye [protected]
 

Definition at line 80 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and SetCameraPosition().

Vector4 IGS_Controller::mCameraTarget [protected]
 

Definition at line 81 of file IGS_Controller.h.

Referenced by BeginFrame(), and SetCameraLookat().

Vector4 IGS_Controller::mCameraUp [protected]
 

Definition at line 82 of file IGS_Controller.h.

Referenced by BeginFrame().

GLclampf IGS_Controller::mColorClear[4] [protected]
 

Definition at line 86 of file IGS_Controller.h.

Referenced by IGS_Controller(), SetClearColor(), and SetRenderStyle().

unsigned char* IGS_Controller::mColorDefault [protected]
 

Definition at line 83 of file IGS_Controller.h.

Referenced by BeginFrame(), IGS_Controller(), SetRenderStyle(), and ~IGS_Controller().

unsigned int IGS_Controller::mFrameNumber [mutable, protected]
 

Definition at line 79 of file IGS_Controller.h.

Referenced by BeginFrame(), and FrameNumber().

IGS_ImageFloat3 IGS_Controller::mGbufferColor
 

Definition at line 74 of file IGS_Controller.h.

Referenced by IGS_Controller(), ScreenCapture(), and SetWindowResolution().

IGS_ImageFloat1 IGS_Controller::mGbufferDepth
 

Definition at line 75 of file IGS_Controller.h.

Referenced by IGS_Controller(), ScreenCapture(), and SetWindowResolution().

GLbitfield IGS_Controller::mGlClearBits [protected]
 

Definition at line 87 of file IGS_Controller.h.

Referenced by BeginFrame().

bool IGS_Controller::mSettingAlphaBlendingOn [protected]
 

Definition at line 94 of file IGS_Controller.h.

bool IGS_Controller::mSettingAnimationOn [protected]
 

Definition at line 95 of file IGS_Controller.h.

int IGS_Controller::mSettingDebugMessageLevel [protected]
 

Definition at line 97 of file IGS_Controller.h.

Referenced by BeginFrame(), and EndFrame().

bool IGS_Controller::mSettingDepthTestingOn [protected]
 

Definition at line 98 of file IGS_Controller.h.

Referenced by BeginFrame().

bool IGS_Controller::mSettingDoubleBufferingOn [protected]
 

Definition at line 99 of file IGS_Controller.h.

bool IGS_Controller::mSettingLightingEnabled [protected]
 

Definition at line 100 of file IGS_Controller.h.

Referenced by SetRenderStyle(), and SettingLightingEnabled().

bool IGS_Controller::mSettingNormalsRelativeToCamera [protected]
 

Definition at line 101 of file IGS_Controller.h.

Referenced by SetRenderStyle(), and SettingNormalsRelativeToCamera().

bool IGS_Controller::mSettingRenderNormals [protected]
 

Definition at line 103 of file IGS_Controller.h.

Referenced by SetRenderStyle(), and SettingRenderNormals().

bool IGS_Controller::mSettingRenderNormalsAsColors [protected]
 

Definition at line 104 of file IGS_Controller.h.

Referenced by SetRenderStyle(), and SettingRenderNormalsAsColors().

bool IGS_Controller::mSettingRenderSilhouettes [protected]
 

Definition at line 105 of file IGS_Controller.h.

Referenced by SetRenderSilhouettes(), and SettingRenderSilhouettes().

enumGBufferTypes IGS_Controller::mSettingRenderStyle [protected]
 

Definition at line 106 of file IGS_Controller.h.

Referenced by GetRenderStyle(), and SetRenderStyle().

GLenum IGS_Controller::mSettingShadingModel [protected]
 

Definition at line 108 of file IGS_Controller.h.

Referenced by BeginFrame().

float IGS_Controller::mSettingSilhouetteEdgeWidth [protected]
 

Definition at line 110 of file IGS_Controller.h.

Referenced by GetSilhouetteEdgeWidth(), and SetSilhouetteEdgeWidth().

bool IGS_Controller::mSettingTexturingOn [protected]
 

Definition at line 111 of file IGS_Controller.h.

bool IGS_Controller::mStateScreenCaptureDone [protected]
 

Definition at line 118 of file IGS_Controller.h.

Referenced by ScreenCapture().

int IGS_Controller::mWindowResolutionX [protected]
 

Definition at line 119 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and SetWindowResolution().

int IGS_Controller::mWindowResolutionY [protected]
 

Definition at line 120 of file IGS_Controller.h.

Referenced by BeginFrame(), ConvertMouseClick(), and SetWindowResolution().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 21:48:10 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO