VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/uiBoundingVolumeElement.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2007 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: uiBoundingVolumeElement.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTUIBOUNDINGVOLUMEELEMENT_H_
00013 #define DTUIBOUNDINGVOLUMEELEMENT_H
00014 
00015 #include "entityEditorImpl/uiElement.h"
00016 #include <matrix/vlVector.h>
00017 
00018 class DtLocationEntryWidget;
00019 class QLabel;
00020 class QComboBox;
00021 
00022 #include "entityEditorImpl/entityEditorImplDefines.h"
00023 
00024 class DT_DLL_entityeditorimpl DtUiBoundingVolumeElement : public DtUiElement
00025 {
00026 public:
00027 
00029    DtUiBoundingVolumeElement
00030    (
00031       const DtString& name,
00032       DtReaderWriterRegistry* const parentRegistry = NULL
00033    );
00034 
00036    virtual ~DtUiBoundingVolumeElement();
00037 
00039    DtUiBoundingVolumeElement(const DtUiBoundingVolumeElement& orig);
00040 
00042    DtUiBoundingVolumeElement& operator=(const DtUiBoundingVolumeElement& orig);
00043 
00044 public:
00045    virtual QWidget* createLabelWidget(QWidget* parent) {return 0;};
00046    virtual QWidget* createControls(QWidget*);
00047 
00048 protected:
00049    virtual DtUiElement* clone();
00050    virtual void decorateElement();
00051    virtual void setFromParameters(DtReaderWriter* parentRw);
00052    virtual void elementChanged();
00053    virtual void setModified(QLabel*, bool);
00054    virtual void updateOrigin();
00055 
00057    virtual void updateSupportPoints();
00058 
00060    virtual void updateSupportPoint(DtUiElement*, const DtVector& pt);
00061 
00063    virtual void sendUpdatedValues();
00064 
00065    virtual void processUiEvent(const DtUiElementEvent& e);
00066 
00067 protected:
00068    DtLocationEntryWidget*  mySize;
00069 
00070    DtVector myDiff;
00071    DtVector myCustomize;
00072    QLabel*     myOriginLabel;
00073    QComboBox*  myOrigin;
00074 
00076    DtUiElement* myLeftSupport;
00077    DtUiElement* myRightSupport;
00078    DtUiElement* myOtherSupport;
00079 };
00080 
00081 #endif

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)