VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtFileCachePage.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvCoreQt/vrvCoreQt.h>
00013 #include <vrvCoreQt/DtPage.h>
00014 #include <vrvCoreQt/DtFileCacheInterface.h>
00015 
00016 class QLabel;
00017 class QCheckBox;
00018 class QPushButton;
00019 class QGroupBox;
00020 class QVBoxLayout;
00021 
00022 namespace makVrv
00023 {
00024 
00025    class DtPersistenceToolbarWidget;
00026    class DtVirtualBaseClass;
00027 
00030    class DT_DLL_VRVCOREQT DtFileCachePage : public DtPage
00031       , public DtFileCacheInterface
00032    {
00033 
00034       Q_OBJECT
00035 
00036    public:
00037 
00039       DtFileCachePage( DtDe& de, QWidget* parent,
00040          Qt::WindowFlags f = Qt::Widget );
00041 
00043       virtual ~DtFileCachePage();
00044 
00046       virtual QIcon icon();
00047 
00049       virtual QString title();
00050 
00052       virtual const std::string& pageClassName() const;
00053 
00055       static const std::string& thePageClassName();
00056 
00060 
00062       virtual void setEnableAccelerationCaching(bool enabled);
00063 
00065       virtual void setCompressTexture(bool enabled);
00066 
00068       virtual void setEnableInstancing(bool enabled);
00069 
00071       virtual void setClearOnNewScene(bool enabled);
00072 
00074 
00075    public slots:
00076 
00080 
00082       virtual void onEnableAccelerationCachingChanged(int state);
00083 
00085       virtual void onClearOnNewSceneChanged(int state);
00086 
00088       virtual void onCompressTextureChanged(int state);
00089 
00091       virtual void onClearAccelerationCacheClicked();
00092 
00094       virtual void onEnableInstancingChanged(int state);
00095 
00097       virtual void onClearInstanceCacheClicked();
00098 
00100 
00101    protected:
00102 
00105       void setupGui();
00106 
00109       void connectToSignals();
00110 
00112       virtual void activate();
00113 
00115       virtual void deactivate();
00116 
00117    protected:
00118 
00119       DtDe& myDe;
00120 
00122       QLabel* myAcceleratedLoadingDesc;
00123       QLabel* myInstancingDescriptionLabel;
00124       QCheckBox* myAcceleratedLoadingCheckBox;
00125       QCheckBox* myCompressTextureCheckBox;
00126       QVBoxLayout* myInstanceGroupBoxLayout;
00127       QCheckBox* myClearOnNewSceneCheckBox;
00128       QPushButton* myClearButton;
00129       QPushButton* myClearInstancingButton;
00130       DtPersistenceToolbarWidget* myToolbar;
00131 
00132       DtVirtualBaseClass* myLogic;
00133 
00134    };
00135 
00136 
00138    typedef DtPageCreatorTemplate<DtFileCachePage> DtFileCachePageCreator;
00139 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)