RigsofRods  2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Data Structures | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
RoR::DashBoard Class Reference

#include <DashBoardManager.h>

Data Structures

struct  layoutGeometricAnimation_t
 
struct  layoutGraphicalAnimation_t
 
struct  layoutLink_t
 

Public Member Functions

 DashBoard (DashBoardManager *manager, Ogre::String filename, int textureLayerNum)
 
 ~DashBoard ()
 
void loadScript (std::string scriptFilename, ActorPtr associatedActor)
 
void setVisible (bool visible, bool smooth=true)
 
bool getVisible ()
 
bool getIsTextureLayer ()
 
void update (float dt)
 
void updateFeatures ()
 
void windowResized ()
 
float getSmoothNumeric (int linkID, float &lastVal)
 

Protected Types

enum  {
  ANIM_NONE, ANIM_ROTATE, ANIM_SCALE, ANIM_TEXTFORMAT,
  ANIM_TEXTSTRING, ANIM_LAMP, ANIM_SERIES, ANIM_TRANSLATE,
  ANIM_TEXTCOLOR
}
 
enum  {
  DIRECTION_NONE, DIRECTION_UP, DIRECTION_RIGHT, DIRECTION_DOWN,
  DIRECTION_LEFT
}
 
enum  { CONDITION_NONE, CONDITION_GREATER, CONDITION_LESSER }
 
typedef struct RoR::DashBoard::layoutGeometricAnimation_t layoutGeometricAnimation_t
 
typedef struct RoR::DashBoard::layoutGraphicalAnimation_t layoutGraphicalAnimation_t
 
typedef struct RoR::DashBoard::layoutLink_t layoutLink_t
 

Protected Member Functions

void loadLayoutInternal ()
 
void loadLayoutRecursive (MyGUI::WidgetPtr ptr)
 
bool parseLink (std::string &linkArgs, int &linkID, char &condition, float &conditionArgument, const std::string &filename, const std::string &name)
 

Protected Attributes

DashBoardManagermanager
 
Ogre::String filename
 
ScriptUnitID_t scriptUnitID = SCRIPTUNITID_INVALID
 
MyGUI::VectorWidgetPtr widgets
 
MyGUI::WindowPtr mainWidget
 
bool visible
 
std::string prefix
 
int textureLayerNum
 
std::string rttLayer
 
std::string rttTexture
 
layoutLink_t controls [MAX_CONTROLS]
 
int free_controls
 

Detailed Description

Definition at line 276 of file DashBoardManager.h.

Member Typedef Documentation

◆ layoutGeometricAnimation_t

◆ layoutGraphicalAnimation_t

◆ layoutLink_t

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
ANIM_NONE 
ANIM_ROTATE 
ANIM_SCALE 
ANIM_TEXTFORMAT 
ANIM_TEXTSTRING 
ANIM_LAMP 
ANIM_SERIES 
ANIM_TRANSLATE 
ANIM_TEXTCOLOR 

Definition at line 308 of file DashBoardManager.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
DIRECTION_NONE 
DIRECTION_UP 
DIRECTION_RIGHT 
DIRECTION_DOWN 
DIRECTION_LEFT 

Definition at line 321 of file DashBoardManager.h.

◆ anonymous enum

anonymous enum
protected
Enumerator
CONDITION_NONE 
CONDITION_GREATER 
CONDITION_LESSER 

Definition at line 330 of file DashBoardManager.h.

Constructor & Destructor Documentation

◆ DashBoard()

DashBoard::DashBoard ( DashBoardManager manager,
Ogre::String  filename,
int  textureLayerNum 
)

Definition at line 563 of file DashBoardManager.cpp.

◆ ~DashBoard()

DashBoard::~DashBoard ( )

Definition at line 587 of file DashBoardManager.cpp.

Member Function Documentation

◆ getIsTextureLayer()

bool RoR::DashBoard::getIsTextureLayer ( )
inline

Definition at line 287 of file DashBoardManager.h.

◆ getSmoothNumeric()

float DashBoard::getSmoothNumeric ( int  linkID,
float &  lastVal 
)

Definition at line 621 of file DashBoardManager.cpp.

◆ getVisible()

bool RoR::DashBoard::getVisible ( )
inline

Definition at line 285 of file DashBoardManager.h.

◆ loadLayoutInternal()

void DashBoard::loadLayoutInternal ( )
protected

Definition at line 1270 of file DashBoardManager.cpp.

◆ loadLayoutRecursive()

void DashBoard::loadLayoutRecursive ( MyGUI::WidgetPtr  ptr)
protected

Definition at line 863 of file DashBoardManager.cpp.

◆ loadScript()

void DashBoard::loadScript ( std::string  scriptFilename,
ActorPtr  associatedActor 
)

Definition at line 600 of file DashBoardManager.cpp.

◆ parseLink()

bool DashBoard::parseLink ( std::string &  linkArgs,
int &  linkID,
char &  condition,
float &  conditionArgument,
const std::string &  filename,
const std::string &  name 
)
protected

Definition at line 802 of file DashBoardManager.cpp.

◆ setVisible()

void DashBoard::setVisible ( bool  visible,
bool  smooth = true 
)

Definition at line 1284 of file DashBoardManager.cpp.

◆ update()

void DashBoard::update ( float  dt)

Definition at line 636 of file DashBoardManager.cpp.

◆ updateFeatures()

void DashBoard::updateFeatures ( )

Definition at line 608 of file DashBoardManager.cpp.

◆ windowResized()

void DashBoard::windowResized ( )

Definition at line 783 of file DashBoardManager.cpp.

Field Documentation

◆ controls

layoutLink_t RoR::DashBoard::controls[MAX_CONTROLS]
protected

Definition at line 389 of file DashBoardManager.h.

◆ filename

Ogre::String RoR::DashBoard::filename
protected

Definition at line 298 of file DashBoardManager.h.

◆ free_controls

int RoR::DashBoard::free_controls
protected

Definition at line 390 of file DashBoardManager.h.

◆ mainWidget

MyGUI::WindowPtr RoR::DashBoard::mainWidget
protected

Definition at line 301 of file DashBoardManager.h.

◆ manager

DashBoardManager* RoR::DashBoard::manager
protected

Definition at line 297 of file DashBoardManager.h.

◆ prefix

std::string RoR::DashBoard::prefix
protected

Definition at line 303 of file DashBoardManager.h.

◆ rttLayer

std::string RoR::DashBoard::rttLayer
protected

Definition at line 305 of file DashBoardManager.h.

◆ rttTexture

std::string RoR::DashBoard::rttTexture
protected

Definition at line 306 of file DashBoardManager.h.

◆ scriptUnitID

ScriptUnitID_t RoR::DashBoard::scriptUnitID = SCRIPTUNITID_INVALID
protected

Definition at line 299 of file DashBoardManager.h.

◆ textureLayerNum

int RoR::DashBoard::textureLayerNum
protected

Definition at line 304 of file DashBoardManager.h.

◆ visible

bool RoR::DashBoard::visible
protected

Definition at line 302 of file DashBoardManager.h.

◆ widgets

MyGUI::VectorWidgetPtr RoR::DashBoard::widgets
protected

Definition at line 300 of file DashBoardManager.h.


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