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

A dialog page controlling file caching. More...

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

Public Slots

User input slots.

Receives notification that the user has changed a widget's value.

virtual void onEnableAccelerationCachingChanged (int state)
 Called when the user checks the file caching checkbox.
virtual void onClearOnNewSceneChanged (int state)
 Called when the user checks the clear instances on new scene checkbox.
virtual void onCompressTextureChanged (int state)
 Called when the user checks the texture compression checkbox.
virtual void onClearAccelerationCacheClicked ()
 Called when the user presses the clear cache button.
virtual void onEnableInstancingChanged (int state)
 Called when the user checks the runtime caching checkbox.
virtual void onClearInstanceCacheClicked ()
 Called when the user presses the clear instance cache button.

Public Member Functions

 DtFileCachePage (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DtFileCachePage ()
 DTOR.
virtual QIcon icon ()
 Get the icon of the page.
virtual QString title ()
 Get the title of the page.
virtual const std::string & pageClassName () const
 Get the class name of the page.
Field value setters.

Sets the values of the widget's corresponding fields.

virtual void setEnableAccelerationCaching (bool enabled)
 Enable/disable file caching.
virtual void setCompressTexture (bool enabled)
 Enable/disable texture compression.
virtual void setEnableInstancing (bool enabled)
 Enable/disable runtime object caching.
virtual void setClearOnNewScene (bool enabled)
 Enable/disable clearing instances on new scene.
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR for page.
virtual ~DtPage ()
 DTOR for page.
virtual PageAction pageAction ()
 return the current action on the page
virtual void setPageAction (PageAction action)
 set the curret action on the page
virtual void setActionFlag (int flag)
 set the action flag of the page
virtual int actionFlag ()
 return the action flag of the page
virtual void setParentDialog (QWidget *paraentDialog)
 set the parent dialog that owns this page
virtual QWidget * parentDialog ()
 return the parent dialog that own this page
virtual bool shouldAskBeforeAction (PageAction action)
 test the action flag with the action, return true if we should ask before executing the action /param action the current page action
virtual void askBeforeAction ()
 Called when the action flag is set and before the action is beind executed, default do nothing.
virtual void executeAfterAsk (bool revert)
 Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it.
virtual void resumeLastAction ()
 resume the last action of the page
virtual void onCloseEvent ()
 will be called when user hit the close button of this page, default do nothing.
virtual void onSwitchEvent ()
 will be called when user try switch to another page, default do nothing.
- Public Member Functions inherited from makVrv::DtFileCacheInterface
virtual ~DtFileCacheInterface ()
 DTOR.

Static Public Member Functions

static const std::string & thePageClassName ()
 Get the class name of the page (static).

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.
void connectToSignals ()
 Connects widget signals to slots.
virtual void activate ()
 Enable the page.
virtual void deactivate ()
 Disable the page.

Protected Attributes

QLabelmyAcceleratedLoadingDesc
 Widgets etc.
QLabelmyInstancingDescriptionLabel
QCheckBoxmyAcceleratedLoadingCheckBox
QCheckBoxmyCompressTextureCheckBox
QVBoxLayout * myInstanceGroupBoxLayout
QCheckBoxmyClearOnNewSceneCheckBox
QPushButtonmyClearButton
QPushButtonmyClearInstancingButton
DtPersistenceToolbarWidgetmyToolbar
DtVirtualBaseClassmyLogic
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe
QWidget * myParentDialog
PageAction myCurrentPageAction
int myActionFlag

Additional Inherited Members

- Public Types inherited from makVrv::DtPage
enum  PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 }
- Public Attributes inherited from makVrv::DtFileCacheInterface
boost::signal< void(bool)> signal_enableAccelerationCachingChanged
 Signals.
boost::signal< void(bool)> signal_clearOnNewSceneChanged
 Called when the clear on new scene widget state changes.
boost::signal< void(bool)> signal_compressTexturesChanged
 Called when the user checks the texture compression checkbox.
boost::signal< void()> signal_clearAccelerationCache
 Called when the user presses the clear cache button.
boost::signal< void(bool)> signal_enableInstancingChanged
 Called when the user checks the runtime caching checkbox.
boost::signal< void()> signal_clearInstanceCache
 Called when the user presses the clear instance cache button.

Detailed Description

A dialog page controlling file caching.

Constructor & Destructor Documentation

makVrv::DtFileCachePage::DtFileCachePage ( DtDe de,
QWidget *  parent,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR.

virtual makVrv::DtFileCachePage::~DtFileCachePage ( )
virtual

DTOR.

Member Function Documentation

virtual QIcon makVrv::DtFileCachePage::icon ( )
virtual

Get the icon of the page.

Implements makVrv::DtPage.

virtual QString makVrv::DtFileCachePage::title ( )
virtual

Get the title of the page.

Implements makVrv::DtPage.

virtual const std::string& makVrv::DtFileCachePage::pageClassName ( ) const
virtual

Get the class name of the page.

Implements makVrv::DtPage.

static const std::string& makVrv::DtFileCachePage::thePageClassName ( )
static

Get the class name of the page (static).

virtual void makVrv::DtFileCachePage::setEnableAccelerationCaching ( bool  enabled)
virtual

Enable/disable file caching.

Implements makVrv::DtFileCacheInterface.

virtual void makVrv::DtFileCachePage::setCompressTexture ( bool  enabled)
virtual

Enable/disable texture compression.

Implements makVrv::DtFileCacheInterface.

virtual void makVrv::DtFileCachePage::setEnableInstancing ( bool  enabled)
virtual

Enable/disable runtime object caching.

Implements makVrv::DtFileCacheInterface.

virtual void makVrv::DtFileCachePage::setClearOnNewScene ( bool  enabled)
virtual

Enable/disable clearing instances on new scene.

Implements makVrv::DtFileCacheInterface.

virtual void makVrv::DtFileCachePage::onEnableAccelerationCachingChanged ( int  state)
virtualslot

Called when the user checks the file caching checkbox.

virtual void makVrv::DtFileCachePage::onClearOnNewSceneChanged ( int  state)
virtualslot

Called when the user checks the clear instances on new scene checkbox.

virtual void makVrv::DtFileCachePage::onCompressTextureChanged ( int  state)
virtualslot

Called when the user checks the texture compression checkbox.

virtual void makVrv::DtFileCachePage::onClearAccelerationCacheClicked ( )
virtualslot

Called when the user presses the clear cache button.

virtual void makVrv::DtFileCachePage::onEnableInstancingChanged ( int  state)
virtualslot

Called when the user checks the runtime caching checkbox.

virtual void makVrv::DtFileCachePage::onClearInstanceCacheClicked ( )
virtualslot

Called when the user presses the clear instance cache button.

void makVrv::DtFileCachePage::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

void makVrv::DtFileCachePage::connectToSignals ( )
protected

Connects widget signals to slots.

Non-virtual (Called from CTOR).

virtual void makVrv::DtFileCachePage::activate ( )
protectedvirtual

Enable the page.

Implements makVrv::DtPage.

virtual void makVrv::DtFileCachePage::deactivate ( )
protectedvirtual

Disable the page.

Implements makVrv::DtPage.

Member Data Documentation

QLabel* makVrv::DtFileCachePage::myAcceleratedLoadingDesc
protected

Widgets etc.

QLabel* makVrv::DtFileCachePage::myInstancingDescriptionLabel
protected
QCheckBox* makVrv::DtFileCachePage::myAcceleratedLoadingCheckBox
protected
QCheckBox* makVrv::DtFileCachePage::myCompressTextureCheckBox
protected
QVBoxLayout* makVrv::DtFileCachePage::myInstanceGroupBoxLayout
protected
QCheckBox* makVrv::DtFileCachePage::myClearOnNewSceneCheckBox
protected
QPushButton* makVrv::DtFileCachePage::myClearButton
protected
QPushButton* makVrv::DtFileCachePage::myClearInstancingButton
protected
DtPersistenceToolbarWidget* makVrv::DtFileCachePage::myToolbar
protected
DtVirtualBaseClass* makVrv::DtFileCachePage::myLogic
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)