CameraDialog Class Reference

#include <CameraDialog.h>

Inheritance diagram for CameraDialog:

GLWWindow GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

TargetCameragetCamera ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void mouseDown (int button, float x, float y, bool &skipRest)
virtual void savePosition (XMLNode *node)
virtual void loadPosition (XMLNode *node)

Static Public Member Functions

static CameraDialoginstance ()

Protected Member Functions

void drawLandscape ()

Protected Attributes

TargetCamera targetCam_

Static Protected Attributes

static CameraDialoginstance_ = 0

Private Member Functions

 CameraDialog ()
virtual ~CameraDialog ()

Detailed Description

Definition at line 27 of file CameraDialog.h.

Constructor & Destructor Documentation

CameraDialog::CameraDialog (  )  [private]

Definition at line 45 of file CameraDialog.cpp.

References TargetCamera::CamGun, TargetCamera::setCameraType(), and targetCam_.

CameraDialog::~CameraDialog (  )  [private, virtual]

Definition at line 54 of file CameraDialog.cpp.

Member Function Documentation

CameraDialog * CameraDialog::instance (  )  [static]

Definition at line 35 of file CameraDialog.cpp.

References instance_.

Referenced by ClientWindowSetup::addCommonComponents(), and Landscape::reset().

TargetCamera& CameraDialog::getCamera (  )  [inline]

Definition at line 32 of file CameraDialog.h.

References targetCam_.

Referenced by Landscape::reset().

void CameraDialog::draw (  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 82 of file CameraDialog.cpp.

References GLState::BLEND_ON, GLState::DEPTH_ON, Main2DCamera::draw(), TargetCamera::draw(), GLWWindow::draw(), GLWidget::drawCircle(), drawLandscape(), TargetCamera::getCamera(), TargetCamera::getCameraNames(), TargetCamera::getCameraType(), GLWFont::getGameFont(), GLViewPort::getHeightMult(), GLViewPort::getWidthMult(), GL_TRIANGLE_FAN, glBegin(), glColor4f(), glEnd(), glPopMatrix(), glPushMatrix(), glTranslatef(), glVertex2f(), GLWidget::h_, GLWFont::instance(), Main2DCamera::instance(), LANG_RESOURCE_VAR_1, GLCamera::setWindowOffset(), GLCamera::setWindowSize(), targetCam_, GLState::TEXTURE_OFF, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

void CameraDialog::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWPanel.

Definition at line 150 of file CameraDialog.cpp.

References ScorchedContext::getGameState(), GameState::getState(), ScorchedClient::instance(), TargetCamera::simulate(), ClientState::StatePlaying, and targetCam_.

void CameraDialog::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWWindow.

Definition at line 171 of file CameraDialog.cpp.

References TargetCamera::CamFree, TargetCamera::CamTop, TargetCamera::getCameraType(), int(), GLWWindow::mouseDown(), TargetCamera::setCameraType(), targetCam_, GLWidget::x_, and GLWidget::y_.

void CameraDialog::savePosition ( XMLNode node  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 58 of file CameraDialog.cpp.

References XMLNode::addChild(), TargetCamera::getCameraType(), GLWidget::getH(), GLWidget::getW(), GLWWindow::savePosition(), and targetCam_.

void CameraDialog::loadPosition ( XMLNode node  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 68 of file CameraDialog.cpp.

References XMLNode::getNamedChild(), GLWWindow::loadPosition(), TargetCamera::setCameraType(), GLWidget::setH(), GLWidget::setW(), and targetCam_.

void CameraDialog::drawLandscape (  )  [protected]

Definition at line 159 of file CameraDialog.cpp.

References ParticleEngine::draw(), ActionController::draw(), RenderTargets::Renderer3D::draw(), GLCameraFrustum::draw(), Landscape::drawLand(), Landscape::drawObjects(), TargetCamera::drawPrecipitation(), Landscape::drawWater(), ScorchedContext::getActionController(), ScorchedClient::getParticleEngine(), ScorchedClient::instance(), RenderTargets::instance(), Landscape::instance(), GLCameraFrustum::instance(), RenderTargets::render3D, and targetCam_.

Referenced by draw().

Member Data Documentation

CameraDialog * CameraDialog::instance_ = 0 [static, protected]

Definition at line 42 of file CameraDialog.h.

Referenced by instance().

TargetCamera CameraDialog::targetCam_ [protected]

Definition at line 43 of file CameraDialog.h.

Referenced by CameraDialog(), draw(), drawLandscape(), getCamera(), loadPosition(), mouseDown(), savePosition(), and simulate().

The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:00 2009 for Scorched3D by  doxygen 1.5.3