VR-Forces 4.1.1 Class Documentation
List of all members | Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
DtScriptedObjectMovementEditor Class Reference

This class will allow for the adding, modifying or removing of scripted object files that will contain rules to move an object towards a target point. More...

Inheritance diagram for DtScriptedObjectMovementEditor:
Inheritance graph
[legend]

Classes

struct  Column
struct  Phase

Public Member Functions

 DtScriptedObjectMovementEditor (QWidget *parent, const Qt::WindowFlags &flags=Qt::Tool)
virtual ~DtScriptedObjectMovementEditor ()

Static Public Member Functions

static
DtScriptedObjectMovementEditor
create (QWidget *p=NULL)

Public Attributes

QPushButtonmyOKButton
QPushButtonmyCancelButton
QLabelmyInstructions
QPushButtonmyAddScriptedObjectMovement
QPushButtonmyRemoveScriptedObjectMovement
QPushButtonmyRenameScriptedObjectMovement
QLabelmyScriptedMovementObjectsLabel
QComboBoxmyScriptedMovementObjects
QLabelmyConfigurationLabel
QFramemyConfigurationSeparator
QLabelmyStartRowLabel
QLineEditmyStartRow
QIntValidator * myValidator
QWidgetmyConfiguration
QPushButtonmyAddPhase
QFramemyPhaseSeparator
QLabelmyPhasesLabel
QTreeWidgetmyPhases

Protected Types

typedef std::map< std::string,
DtScriptedMovementObject
ScriptedMovementObjectsMap
typedef std::vector< ColumnColumns
typedef std::vector< PhasePhases

Protected Slots

virtual void onAddScriptedObjectMovement ()
virtual void onRemoveScriptedObjectMovement ()
virtual void onRenameScriptedObjectMovement ()
virtual void onSeletScriptedMovementObject ()
virtual void onColumnChanged ()
 Called when the configuration column contents have changed.
virtual void onStartRowChanged ()
 Called when the stat row has changed.
virtual void onAddPhase ()
 Called to add a new phase to the configuration.
virtual void onRemovePhase ()
 Called to remove the selected phase from the configuration.
virtual void onPhaseChanged ()
 Called when the phase contents have changed.
virtual void onMovementFileChanged ()
 Called when the user selects a new movement file.
virtual void onMissileTypeChanged ()
 Called when missile type is changed.

Protected Member Functions

virtual void accept ()
 Called when dialog is accepted. Write out all changes.
virtual void setupFiles ()
 Called from constructor. Sets up the files available.
virtual DtFilename defaultMovementFile () const
 Returns the default movement file to use. Simply the first file found.
virtual DtEntityType defaultMissileType () const
 Returns the default missile type. Simply the first one discovered.
std::vector< std::string > filesThatMatch (const std::string &ext) const
 Returns a list of files in the scripted movement directory that have the given extension.
virtual void setupDefaultTypesFor (const DtEntityType &)
 Sets up default types for the type given. Entity types must match the given type and have a script controller.
virtual DtComponentDescriptorfindFromSystem (const DtComponentSystemDescriptorList *) const
 Sees if the scripted movement controller exists in any system.
virtual DtComponentDescriptorfindFromComponents (const DtComponentDescriptorList *) const
 Sees if the scripted movement controller is in the components list.
virtual void addColumn ()
 Adds a new column. Currently only 4 columns supported.
virtual void changeColumn (int)
 Changes column to match current information.
virtual void setColumn (int col, int columnInFile, const std::string &type, const std::string &unit)
 Sets the data for the particular column.
virtual void addPhase (const DtScriptedMovementPhase &)
 Adds a new phase into the phase tree widget.

Protected Attributes

ScriptedMovementObjectsMap myScriptedMovementObjectsMap
ScriptedMovementObjectsMap myScriptedObjectMovementsToRemove
makVrv::DtDemyDe
std::vector< std::string > myMovementFiles
std::vector< DtEntityType > myMissileTypes
Columns myColumns
Phases myPhasesVector

Detailed Description

This class will allow for the adding, modifying or removing of scripted object files that will contain rules to move an object towards a target point.

Only objects that have the scripted-movement-controller will be allowed to be used as objects that can be moved

Member Typedef Documentation

typedef std::vector<Column> DtScriptedObjectMovementEditor::Columns
protected
typedef std::vector<Phase> DtScriptedObjectMovementEditor::Phases
protected

Constructor & Destructor Documentation

DtScriptedObjectMovementEditor::DtScriptedObjectMovementEditor ( QWidget parent,
const Qt::WindowFlags &  flags = Qt::Tool 
)
virtual DtScriptedObjectMovementEditor::~DtScriptedObjectMovementEditor ( )
virtual

Member Function Documentation

static DtScriptedObjectMovementEditor* DtScriptedObjectMovementEditor::create ( QWidget p = NULL)
static
virtual void DtScriptedObjectMovementEditor::accept ( )
protectedvirtual

Called when dialog is accepted. Write out all changes.

virtual void DtScriptedObjectMovementEditor::setupFiles ( )
protectedvirtual

Called from constructor. Sets up the files available.

virtual DtFilename DtScriptedObjectMovementEditor::defaultMovementFile ( ) const
protectedvirtual

Returns the default movement file to use. Simply the first file found.

virtual DtEntityType DtScriptedObjectMovementEditor::defaultMissileType ( ) const
protectedvirtual

Returns the default missile type. Simply the first one discovered.

std::vector<std::string> DtScriptedObjectMovementEditor::filesThatMatch ( const std::string &  ext) const
protected

Returns a list of files in the scripted movement directory that have the given extension.

virtual void DtScriptedObjectMovementEditor::setupDefaultTypesFor ( const DtEntityType &  )
protectedvirtual

Sets up default types for the type given. Entity types must match the given type and have a script controller.

virtual DtComponentDescriptor* DtScriptedObjectMovementEditor::findFromSystem ( const DtComponentSystemDescriptorList ) const
protectedvirtual

Sees if the scripted movement controller exists in any system.

virtual DtComponentDescriptor* DtScriptedObjectMovementEditor::findFromComponents ( const DtComponentDescriptorList ) const
protectedvirtual

Sees if the scripted movement controller is in the components list.

virtual void DtScriptedObjectMovementEditor::addColumn ( )
protectedvirtual

Adds a new column. Currently only 4 columns supported.

virtual void DtScriptedObjectMovementEditor::changeColumn ( int  )
protectedvirtual

Changes column to match current information.

virtual void DtScriptedObjectMovementEditor::setColumn ( int  col,
int  columnInFile,
const std::string &  type,
const std::string &  unit 
)
protectedvirtual

Sets the data for the particular column.

virtual void DtScriptedObjectMovementEditor::addPhase ( const DtScriptedMovementPhase )
protectedvirtual

Adds a new phase into the phase tree widget.

virtual void DtScriptedObjectMovementEditor::onAddScriptedObjectMovement ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onRemoveScriptedObjectMovement ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onRenameScriptedObjectMovement ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onSeletScriptedMovementObject ( )
protectedvirtualslot
virtual void DtScriptedObjectMovementEditor::onColumnChanged ( )
protectedvirtualslot

Called when the configuration column contents have changed.

virtual void DtScriptedObjectMovementEditor::onStartRowChanged ( )
protectedvirtualslot

Called when the stat row has changed.

virtual void DtScriptedObjectMovementEditor::onAddPhase ( )
protectedvirtualslot

Called to add a new phase to the configuration.

virtual void DtScriptedObjectMovementEditor::onRemovePhase ( )
protectedvirtualslot

Called to remove the selected phase from the configuration.

virtual void DtScriptedObjectMovementEditor::onPhaseChanged ( )
protectedvirtualslot

Called when the phase contents have changed.

virtual void DtScriptedObjectMovementEditor::onMovementFileChanged ( )
protectedvirtualslot

Called when the user selects a new movement file.

If Add... is select allows user to select new file

virtual void DtScriptedObjectMovementEditor::onMissileTypeChanged ( )
protectedvirtualslot

Called when missile type is changed.

If Add... is selected allows user to create a new missile type for scripted movement

Member Data Documentation

QPushButton* DtScriptedObjectMovementEditor::myOKButton
QPushButton* DtScriptedObjectMovementEditor::myCancelButton
QLabel* DtScriptedObjectMovementEditor::myInstructions
QPushButton* DtScriptedObjectMovementEditor::myAddScriptedObjectMovement
QPushButton* DtScriptedObjectMovementEditor::myRemoveScriptedObjectMovement
QPushButton* DtScriptedObjectMovementEditor::myRenameScriptedObjectMovement
QLabel* DtScriptedObjectMovementEditor::myScriptedMovementObjectsLabel
QComboBox* DtScriptedObjectMovementEditor::myScriptedMovementObjects
QLabel* DtScriptedObjectMovementEditor::myConfigurationLabel
QFrame* DtScriptedObjectMovementEditor::myConfigurationSeparator
QLabel* DtScriptedObjectMovementEditor::myStartRowLabel
QLineEdit* DtScriptedObjectMovementEditor::myStartRow
QIntValidator* DtScriptedObjectMovementEditor::myValidator
QWidget* DtScriptedObjectMovementEditor::myConfiguration
QPushButton* DtScriptedObjectMovementEditor::myAddPhase
QFrame* DtScriptedObjectMovementEditor::myPhaseSeparator
QLabel* DtScriptedObjectMovementEditor::myPhasesLabel
QTreeWidget* DtScriptedObjectMovementEditor::myPhases
ScriptedMovementObjectsMap DtScriptedObjectMovementEditor::myScriptedMovementObjectsMap
protected
ScriptedMovementObjectsMap DtScriptedObjectMovementEditor::myScriptedObjectMovementsToRemove
protected
makVrv::DtDe& DtScriptedObjectMovementEditor::myDe
protected
std::vector<std::string> DtScriptedObjectMovementEditor::myMovementFiles
protected
std::vector<DtEntityType> DtScriptedObjectMovementEditor::myMissileTypes
protected
Columns DtScriptedObjectMovementEditor::myColumns
protected
Phases DtScriptedObjectMovementEditor::myPhasesVector
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)