TdkProjectionDlgController Class Reference

Defines the TdkProjectionDlgController class. This class defines the projection dialog controller. More...

#include <TdkProjectionDlgController.h>

Inheritance diagram for TdkProjectionDlgController:

TdkDlgController TdkObserver TdkSubject List of all members.

Behavioral Methods

Methods related connect database dialog behavior.

void setInitialState ()
 Sets the initial state of the dialog.
void update (TdkSubject *changedObject)
 This method is called when the user interacts with the dialog.
string dlgName ()
 Retrieves dialog's definiton name.
TeProjection * getCreatedProjection ()
 Retrieves the created projection.
void projectionActivated ()
 Action called on projection list current item changed.
void clearParametersGroup ()
 Cleans the projection parameters.
void originLatLongLostFocus ()
 Action called on origin latitude lost focus.
bool longValidator (const string &str, double &val)
 Validates a longitude given by the user.
bool latValidator (const string &str, double &val)
 Validates a latitude given by the user.
void loadProjection (TeProjection *projection)
 Loads projection.
void okClicked ()
 Action called on ok button clicked.
void zoneActivated ()
 Action called on zone list current item changed.
void hemiphereActivated ()
 Action called on hemisphere button checked changed.

Public Member Functions

Constructor and Destructor Methods
Methods related to instantiation and destruction.

 TdkProjectionDlgController (TdkProjectionDlg *dlg)
 Constructor.
virtual ~TdkProjectionDlgController ()
 Virtual destructor.

Private Attributes

TeProjection * _createdProjection
 Created projection.
double _UtmOffsetX
 UTM parameter.
double _UtmOffsetY
 UTM parameter.

Detailed Description

Defines the TdkProjectionDlgController class. This class defines the projection dialog controller.

TODO: 1) 2) 3)

See also:
TdkDlgController, TdkProjectionDlg, TdkSubject


Constructor & Destructor Documentation

TdkProjectionDlgController::TdkProjectionDlgController ( TdkProjectionDlg dlg  ) 

Constructor.

Parameters:
dlg Pointer to projection dialog.

TdkProjectionDlgController::~TdkProjectionDlgController (  )  [virtual]

Virtual destructor.


Member Function Documentation

void TdkProjectionDlgController::setInitialState (  )  [virtual]

Sets the initial state of the dialog.

Implements TdkDlgController.

void TdkProjectionDlgController::update ( TdkSubject changedObject  )  [virtual]

This method is called when the user interacts with the dialog.

Parameters:
changedObject Object that signals a change.

Implements TdkObserver.

std::string TdkProjectionDlgController::dlgName (  )  [virtual]

Retrieves dialog's definiton name.

Returns:
Returns the definition TDK_PROJECTION_DLG_NAME.

Implements TdkDlgController.

TeProjection * TdkProjectionDlgController::getCreatedProjection (  ) 

Retrieves the created projection.

Returns:
Created projection.

void TdkProjectionDlgController::projectionActivated (  )  [protected]

Action called on projection list current item changed.

void TdkProjectionDlgController::clearParametersGroup (  )  [protected]

Cleans the projection parameters.

void TdkProjectionDlgController::originLatLongLostFocus (  )  [protected]

Action called on origin latitude lost focus.

bool TdkProjectionDlgController::longValidator ( const string &  str,
double &  val 
) [protected]

Validates a longitude given by the user.

Parameters:
str Longitude. (Input)
val Return value. (Output)
Returns:
True - operation ok, False - operation problem.

bool TdkProjectionDlgController::latValidator ( const string &  str,
double &  val 
) [protected]

Validates a latitude given by the user.

Parameters:
str Latitude. (Input)
val Return value. (Output)
Returns:
True - operation ok, False - operation problem.

void TdkProjectionDlgController::loadProjection ( TeProjection *  projection  )  [protected]

Loads projection.

Parameters:
projection Pointer to projection to be loaded.

void TdkProjectionDlgController::okClicked (  )  [protected]

Action called on ok button clicked.

void TdkProjectionDlgController::zoneActivated (  )  [protected]

Action called on zone list current item changed.

void TdkProjectionDlgController::hemiphereActivated (  )  [protected]

Action called on hemisphere button checked changed.


Member Data Documentation

TeProjection* TdkProjectionDlgController::_createdProjection [private]

Created projection.

double TdkProjectionDlgController::_UtmOffsetX [private]

UTM parameter.

double TdkProjectionDlgController::_UtmOffsetY [private]

UTM parameter.


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:51 2007 for TDK by  doxygen 1.5.2