MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GetInfoDialog Class Reference

Subclass of GenericDialog that implements the window summoned by selecting the Get Info menu entry. More...

#include <GetInfoDialog.h>

Inheritance diagram for GetInfoDialog:
GenericDialog RefCounted

List of all members.

Classes

class  GetInfoVisitor
 Visitor for interrogating a mesh. More...

Public Member Functions

 GetInfoDialog (const std::string &key, SmartPointer< SetScaleDialog > &setScaleDialog)
 Constructor.
 ~GetInfoDialog ()
 Destructor.
bool Apply ()
 Handler for the Apply logic for this dialog.
- Public Member Functions inherited from GenericDialog
const std::string & GetKey () const
 Get the unique key that identifies this dialog widget.
virtual void SetWindow (GtkWidget *window)
 Mark this window widget as a modal dialog for a parent window.
virtual void Raise ()
 Raise this dialog window to the top of the window stack.
virtual void Show (const std::string &triggerCommand)
 Make this dialog window visible and foreground.
virtual void Hide ()
 Hide this dialog window.
virtual gint CloseEventCallback (GtkWidget *widget, GdkEvent *event, gpointer callbackID)
 Callback for window-close event.
virtual void FinalizeCallback (GtkWidget *widget, gpointer callbackID)
 Callback for clicking on OK/Apply/Cancel button.
void CreateWindowCloseCallback ()
 Register the callback for the close-window event.
void CreateOkButtonCallback (GtkWidget *button)
 Register the callback for the OK button.
void CreateApplyButtonCallback (GtkWidget *button)
 Register the callback for the Apply button.
void CreateCancelButtonCallback (GtkWidget *button)
 Register the callback for the Cancel button.
- Public Member Functions inherited from RefCounted
 RefCounted ()
 Default constructor.
virtual ~RefCounted ()
 Virtual destructor.
void IncRef ()
 Increment reference count.
void DecRef ()
 Decrement reference count, and self-delete if count is <= 0.

Private Attributes

SmartPointer< SetScaleDialog_setScaleDialog
 Handle on the Set S/T Scale dialog.
MeshEntity::TexInfoCallback _rowTexInfoCallback
 Callback to process row texture scale information from a query.
MeshEntity::TexInfoCallback _colTexInfoCallback
 Callback to process column texture scale information from a query.
SmartPointer< MeshVisitor_nullVisitor
 Action-less mesh visitor used purely to count the number of selected mesh entities.

Additional Inherited Members

- Protected Member Functions inherited from GenericDialog
 GenericDialog (const std::string &key)
 Constructor.
virtual ~GenericDialog ()
 Virtual destructor.
- Protected Attributes inherited from GenericDialog
GtkWidget * _dialog
 This dialog widget.
GtkWidget * _window
 Parent window.
const std::string _key
 Unique key for this dialog.
std::string _triggerCommand
 Command token that most recently summoned this dialog.
gpointer _okCallbackID
 Callback ID associated with an OK button; 0 if none.
gpointer _applyCallbackID
 Callback ID associated with an Apply button; 0 if none.
gpointer _cancelCallbackID
 Callback ID associated with a Cancel button; 0 if none.

Detailed Description

Subclass of GenericDialog that implements the window summoned by selecting the Get Info menu entry.

This window allows the user to query information about selected meshes and optionally transfer some of that information to the Set S/T Scale dialog.

getinfo.png

Constructor & Destructor Documentation

GetInfoDialog::GetInfoDialog ( const std::string &  key,
SmartPointer< SetScaleDialog > &  setScaleDialog 
)

Constructor.

Connect the row and column texture info callbacks to the appropriate methods on the Set S/T Scale dialog object. Configure the dialog window and create all the contained widgets. Connect widgets to callbacks as necessary.

Parameters:
keyThe unique key identifying this dialog.
setScaleDialogReference-counted handle on the Set S/T Scale dialog.

Member Function Documentation

bool GetInfoDialog::Apply ( )
virtual

Handler for the Apply logic for this dialog.

Interrogate the selected mesh entities.

Returns:
false if no meshes are selected, false if multiple meshes are selected along with the transfer option, true otherwise.

Reimplemented from GenericDialog.


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