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

Subclass of GenericDialog that implements the window summoned by selecting the General Function menu entry. More...

#include <GeneralFunctionDialog.h>

Inheritance diagram for GeneralFunctionDialog:
GenericDialog RefCounted

List of all members.

Classes

class  GeneralFunctionVisitor
 Visitor for applying the chosen equation to a mesh. More...

Public Member Functions

 GeneralFunctionDialog (const std::string &key)
 Constructor.
 ~GeneralFunctionDialog ()
 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< 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 General Function menu entry.

This window is used to specify equations for setting S and T values as a linear combination of various factors.

genfunc.png

Constructor & Destructor Documentation

GeneralFunctionDialog::GeneralFunctionDialog ( const std::string &  key)

Constructor.

Configure the dialog window and create all the contained widgets. Connect widgets to callbacks as necessary.

Parameters:
keyThe unique key identifying this dialog.

Member Function Documentation

bool GeneralFunctionDialog::Apply ( )
virtual

Handler for the Apply logic for this dialog.

Apply the specified equations to the selected mesh entities.

Returns:
true if any meshes are selected, false otherwise.

Reimplemented from GenericDialog.


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