Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ViewLocation Class Reference

#include <View.h>

Public Member Functions

 ViewLocation ()
 
const Coord3DgetPosition () const
 
Bool isValid () const
 
Real getAngle () const
 
Real getPitch () const
 
Real getZoom () const
 
void init (Real x, Real y, Real z, Real angle, Real pitch, Real zoom)
 

Protected Attributes

Bool m_valid
 Is this location valid.
 
Coord3D m_pos
 Position of this view, in world coordinates.
 
Real m_angle
 Angle at which view has been rotated about the Z axis.
 
Real m_pitch
 Angle at which view has been rotated about the Y axis.
 
Real m_zoom
 Current zoom value.
 

Friends

class View
 
class LookAtTranslator
 

Detailed Description

Used to save and restore view position

Definition at line 295 of file View.h.

Constructor & Destructor Documentation

◆ ViewLocation()

ViewLocation::ViewLocation ( )
inline

Definition at line 309 of file View.h.

Member Function Documentation

◆ getAngle()

Real ViewLocation::getAngle ( ) const
inline

Definition at line 321 of file View.h.

◆ getPitch()

Real ViewLocation::getPitch ( ) const
inline

Definition at line 322 of file View.h.

◆ getPosition()

const Coord3D & ViewLocation::getPosition ( ) const
inline

Definition at line 319 of file View.h.

◆ getZoom()

Real ViewLocation::getZoom ( ) const
inline

Definition at line 323 of file View.h.

◆ init()

void ViewLocation::init ( Real x,
Real y,
Real z,
Real angle,
Real pitch,
Real zoom )
inline

Definition at line 325 of file View.h.

◆ isValid()

Bool ViewLocation::isValid ( ) const
inline

Definition at line 320 of file View.h.

Friends And Related Symbol Documentation

◆ LookAtTranslator

friend class LookAtTranslator
friend

Definition at line 298 of file View.h.

◆ View

friend class View
friend

Definition at line 297 of file View.h.

Member Data Documentation

◆ m_angle

Real ViewLocation::m_angle
protected

Angle at which view has been rotated about the Z axis.

Definition at line 303 of file View.h.

◆ m_pitch

Real ViewLocation::m_pitch
protected

Angle at which view has been rotated about the Y axis.

Definition at line 304 of file View.h.

◆ m_pos

Coord3D ViewLocation::m_pos
protected

Position of this view, in world coordinates.

Definition at line 302 of file View.h.

◆ m_valid

Bool ViewLocation::m_valid
protected

Is this location valid.

Definition at line 301 of file View.h.

◆ m_zoom

Real ViewLocation::m_zoom
protected

Current zoom value.

Definition at line 305 of file View.h.


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