This class represents the user interface which belongs to a component in map extraction.
By design, there are no other UI elements on the map extraction dialog other than the component panel. This means that common widgets which belongs to all the components (for example layout related widgets, texture size) must be included in all the component panels. There are functions in this class which makes it very easy for the component to create these widgets, so that their look is preserved between the different components. This also gives a chance for the components to customize these widgets, for example if a component doesn't need the level for the target meshes, it can get a widget which hides the level of the target meshes. When the user opens the properties window for a map extractor node, the UserInterface is called in all the components. Those functions must create a new instance of a class inherited from ComponentUI, which will then used to communicate with the user. Only one of these panels are shown at a time, the others are hiden. When the user switches components, the previous panel is hidden, and another one is shown.
Definition at line 230 of file MapExtractorInterface.h.
#include <MapExtractorInterface.h>

Public Member Functions |
|
| virtual void | Initialize (void) |
| virtual QWidget * | RootWidget (void) |
| virtual void | UpdateValues (void) |
| QLabel * | SmallerLabel (const QString &text) |
Public Attributes |
|
| TextureExtractionDialog * | m_pDialog |
| Mapper * | m_pMapper |
| bool | m_bValidData |
| bool | m_bDefaultTargetToLowestLevel |
| class Component * | m_pTarget |
Protected Member Functions |
|
| ComponentUI (class Component *pTarget) | |
| QWidget * | CreateTargetWidget (bool bSmoothing=true, bool bUVSmoothing=true, bool bDefaultToLowest=true, bool bShowLevels=true) |
| This function creates a widget which
represents the list of the target meshes, including the smoothing
checboxes. |
|
| QWidget * | CreateSourceWidget (bool bSmoothing=true) |
| This function creates a widget which is used
for the source mesh list, including the checkbox for smooth
surface. |
|
| QWidget * | CreateLocatorWidget (void) |
| This function creates the widget which
contains the parameters of the current locator node. |
|
| QWidget * | CreateLayoutWidget (void) |
| This function creates the widget which
contains the parameters of the current locator node. |
|
| QWidget * | CreateOutputWidget (void) |
| This function creates a widget where the
user can set output related settings, like filename and extension
(the extension controls the type of the utilizers, so when the user
chooses a different extension, the utilizer and layout object might
be recreated) |
|
Protected Attributes |
|
| QComboBox * | m_pLocateMethod |
| ComponentUI | ( | class Component * | pTarget | ) | [protected] |
| QWidget* CreateTargetWidget | ( | bool | bSmoothing = true, |
| bool | bUVSmoothing =
true, |
||
| bool | bDefaultToLowest =
true, |
||
| bool | bShowLevels =
true |
||
| ) | [protected] |
This function creates a widget which represents the list of the target meshes, including the smoothing checboxes.
| [in] | bSmoothing | if true, the smoothing checkbox will be visible. |
| [in] | bUVSmoothing | if true, the texture coordinate smoothing checkbox will be visible. |
| [in] | bDefaultToLowest | if true, and the user adds a new mesh as the target, the lowest level of that mesh will be used by default. |
| [in] | bShowLevels | if true, the level column will be visible to the user, letting them choose the subdivision level. |
| QWidget* CreateSourceWidget | ( | bool | bSmoothing = true |
) | [protected] |
This function creates a widget which is used for the source mesh list, including the checkbox for smooth surface.
| [in] | bSmoothing | if true, the smoothing checkbox will be visible. |
| QWidget* CreateLocatorWidget | ( | void | ) | [protected] |
This function creates the widget which contains the parameters of the current locator node.
The look of this widget depends on the type of the locator.
| QWidget* CreateLayoutWidget | ( | void | ) | [protected] |
This function creates the widget which contains the parameters of the current locator node.
The look of this widget depends on the type of the locator. For example for traditional texture map extraction this widget is where the user can alter the size of the extracted texture.
| QWidget* CreateOutputWidget | ( | void | ) | [protected] |
This function creates a widget where the user can set output related settings, like filename and extension (the extension controls the type of the utilizers, so when the user chooses a different extension, the utilizer and layout object might be recreated)
| virtual void Initialize | ( | void | ) | [virtual] |
Reimplemented from Node.
| virtual QWidget* RootWidget | ( | void | ) | [virtual] |
| virtual void UpdateValues | ( | void | ) | [virtual] |
| TextureExtractionDialog* m_pDialog |
Definition at line 262 of file MapExtractorInterface.h.
| Mapper* m_pMapper |
Definition at line 263 of file MapExtractorInterface.h.
| bool m_bValidData |
Definition at line 264 of file MapExtractorInterface.h.
Definition at line 265 of file MapExtractorInterface.h.
Definition at line 266 of file MapExtractorInterface.h.
QComboBox*
m_pLocateMethod [protected] |
Definition at line 284 of file MapExtractorInterface.h.