VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtAddTerrainPatchDialog Class Reference

Dialog for adding a terrain patch. More...

Inheritance diagram for makVrv::DtAddTerrainPatchDialog:
Inheritance graph
[legend]

Public Slots

bool onBrowseClicked ()
 Called when user clicked "Browse". More...
 
virtual void onOkClicked ()
 Called when user clicked "Ok". More...
 
virtual void onCancelClicked ()
 Called when user clicked "Cancel". More...
 
virtual void onCoordSysComboChanged (int index)
 Called when user chooses a coordinate system from the combo box. More...
 
virtual void onDdsFlipChanged (int checkState)
 Called when the DDS flip checkbox changes. More...
 
virtual void onAlphaToCoverageChanged (int currentIndex)
 slot for when alpha to coverage is changed for this terrain patch More...
 
virtual void onIndirectEnabledChanged (int checkState)
 slot for when indirect enabled is changed for this terrain patch More...
 
static QString fileFilter (DtDe &de, const std::string &dialogType, const QString &allSpecifiedString, bool includeGlobal)
 Create a file filter from the extensions registered with the file extension manager If you want all the registered extensions shown on a single line (when there are multiple filter items) a non-null allSpecifiedString provides the description to use for that. More...
 

Public Member Functions

 DtAddTerrainPatchDialog (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Tool)
 CTOR. More...
 
virtual ~DtAddTerrainPatchDialog ()
 DTOR. More...
 
virtual void displayErrorMessage (ErrorMessage msg)
 
virtual void setFileLabel (const std::string &filePath)
 Called by the logic to set the current file label. More...
 
virtual void setCoordSystemComboBox (TerrainCoordinateSystemEnum index)
 Called by the logic to set the combo boxes item. More...
 
virtual void setCoordSystemParams (const std::string &params)
 Called by the logic to set the coord sys params. More...
 
virtual void setOkEnabled (bool flag)
 Called by the logic to enable the "OK" button. More...
 

Protected Member Functions

void setupGui ()
 Build Gui. More...
 

Protected Attributes

DtDemyDe
 
DtAddTerrainPatchLogicmyLogic
 
QLineEditmyFilenameLabel
 
QComboBoxmyCoordSysCombo
 
QLineEditmyCoordSysParamsEdit
 
QPushButtonmyOkButton
 
QPushButtonmyCancelButton
 
QValidatormyUtmValidator
 
QValidatormyFlatEarthValidator
 
QValidatormyOriginOffsetValidator
 
QValidatormyLambertValidator
 
QLabelmyParamInstructions
 
QCheckBoxmyDdsFlipCheckbox
 
QComboBoxmyAlphaToCoverageCombo
 
QCheckBoxmyIndirectEnabledCheckbox
 

Additional Inherited Members

- Public Types inherited from makVrv::DtAddTerrainPatchInterface
enum  TerrainCoordinateSystemEnum {
  None = 0, Geocentric, UTM, Lambert,
  FlatEarth, Cartesian
}
 
enum  ErrorMessage { NoError = 0, UnsupportedMetaFlight = 1 }
 
- Public Attributes inherited from makVrv::DtAddTerrainPatchInterface
boost::signal< void()> signal_addTerrainPatch
 
boost::signal< void(const
std::string &)> 
signal_terrainPatchFileChosen
 
boost::signal< void(const
std::string &)> 
signal_coordinateSystemChanged
 
boost::signal< void(const
std::string &)> 
signal_coordinateSystemParameters
 
boost::signal< void(bool)> signal_ddsFlipChanged
 
boost::signal< void(int)> signal_alphaToCoverageChanged
 
boost::signal< void(bool)> signal_indirectEnabledChanged
 

Detailed Description

Dialog for adding a terrain patch.

Constructor & Destructor Documentation

makVrv::DtAddTerrainPatchDialog::DtAddTerrainPatchDialog ( DtDe de,
QWidget *  parent,
Qt::WindowFlags  f = Qt::Tool 
)

CTOR.

virtual makVrv::DtAddTerrainPatchDialog::~DtAddTerrainPatchDialog ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtAddTerrainPatchDialog::displayErrorMessage ( ErrorMessage  msg)
virtual
virtual void makVrv::DtAddTerrainPatchDialog::setFileLabel ( const std::string &  filePath)
virtual

Called by the logic to set the current file label.

Implements makVrv::DtAddTerrainPatchInterface.

virtual void makVrv::DtAddTerrainPatchDialog::setCoordSystemComboBox ( TerrainCoordinateSystemEnum  index)
virtual

Called by the logic to set the combo boxes item.

Implements makVrv::DtAddTerrainPatchInterface.

virtual void makVrv::DtAddTerrainPatchDialog::setCoordSystemParams ( const std::string &  params)
virtual

Called by the logic to set the coord sys params.

Implements makVrv::DtAddTerrainPatchInterface.

virtual void makVrv::DtAddTerrainPatchDialog::setOkEnabled ( bool  flag)
virtual

Called by the logic to enable the "OK" button.

Implements makVrv::DtAddTerrainPatchInterface.

bool makVrv::DtAddTerrainPatchDialog::onBrowseClicked ( )
slot

Called when user clicked "Browse".

Non virtual, called by CTOR.

virtual void makVrv::DtAddTerrainPatchDialog::onOkClicked ( )
virtualslot

Called when user clicked "Ok".

virtual void makVrv::DtAddTerrainPatchDialog::onCancelClicked ( )
virtualslot

Called when user clicked "Cancel".

virtual void makVrv::DtAddTerrainPatchDialog::onCoordSysComboChanged ( int  index)
virtualslot

Called when user chooses a coordinate system from the combo box.

virtual void makVrv::DtAddTerrainPatchDialog::onDdsFlipChanged ( int  checkState)
virtualslot

Called when the DDS flip checkbox changes.

virtual void makVrv::DtAddTerrainPatchDialog::onAlphaToCoverageChanged ( int  currentIndex)
virtualslot

slot for when alpha to coverage is changed for this terrain patch

virtual void makVrv::DtAddTerrainPatchDialog::onIndirectEnabledChanged ( int  checkState)
virtualslot

slot for when indirect enabled is changed for this terrain patch

static QString makVrv::DtAddTerrainPatchDialog::fileFilter ( DtDe de,
const std::string &  dialogType,
const QString &  allSpecifiedString,
bool  includeGlobal 
)
staticslot

Create a file filter from the extensions registered with the file extension manager If you want all the registered extensions shown on a single line (when there are multiple filter items) a non-null allSpecifiedString provides the description to use for that.

If includeGlobal is true, then a filter with "All (*.*)" is included at the end.

void makVrv::DtAddTerrainPatchDialog::setupGui ( )
protected

Build Gui.

Member Data Documentation

DtDe& makVrv::DtAddTerrainPatchDialog::myDe
protected
DtAddTerrainPatchLogic* makVrv::DtAddTerrainPatchDialog::myLogic
protected
QLineEdit* makVrv::DtAddTerrainPatchDialog::myFilenameLabel
protected
QComboBox* makVrv::DtAddTerrainPatchDialog::myCoordSysCombo
protected
QLineEdit* makVrv::DtAddTerrainPatchDialog::myCoordSysParamsEdit
protected
QPushButton* makVrv::DtAddTerrainPatchDialog::myOkButton
protected
QPushButton* makVrv::DtAddTerrainPatchDialog::myCancelButton
protected
QValidator* makVrv::DtAddTerrainPatchDialog::myUtmValidator
protected
QValidator* makVrv::DtAddTerrainPatchDialog::myFlatEarthValidator
protected
QValidator* makVrv::DtAddTerrainPatchDialog::myOriginOffsetValidator
protected
QValidator* makVrv::DtAddTerrainPatchDialog::myLambertValidator
protected
QLabel* makVrv::DtAddTerrainPatchDialog::myParamInstructions
protected
QCheckBox* makVrv::DtAddTerrainPatchDialog::myDdsFlipCheckbox
protected
QComboBox* makVrv::DtAddTerrainPatchDialog::myAlphaToCoverageCombo
protected
QCheckBox* makVrv::DtAddTerrainPatchDialog::myIndirectEnabledCheckbox
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)