![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00009 00010 #pragma once 00011 #include <vrvCore/DtArealFeatureVisualizer.h> 00012 00013 namespace makVrv 00014 { 00015 class DtSceneObjectAgent; 00016 class DtExtrudedLineModelAgent; 00017 class DtOverlaySegmentedLineModelAgent; 00018 00020 class DT_DLL_VRVCORE DtDefaultArealFeatureVisualizer 00021 : public DtArealFeatureVisualizer 00022 { 00023 public: 00025 DtDefaultArealFeatureVisualizer(DtDe& de, DtArealFeature* feature); 00026 00028 virtual ~DtDefaultArealFeatureVisualizer(); 00029 00031 virtual void visualize( int modelSet ); 00032 00034 virtual std::vector<DtUniqueID> findSceneObjectIds() const; 00035 00037 virtual void setColor(const float rgba[4]); 00038 00040 virtual void setOutlineColor(const float rgba[4]); 00041 00043 virtual void setHighlighted(bool highlighted); 00044 00045 protected: 00046 00048 virtual void create3dModels(int modelSet); 00049 00051 virtual void create2dModels(int modelSet); 00052 00053 void updateColor(); 00054 00055 protected: 00056 00057 DtDe& myDe; 00058 DtSceneObjectAgent* my3dAgent; 00059 DtSceneObjectAgent* my2dAgent; 00060 00062 DtExtrudedLineModelAgent* myExtrudedLineModel; 00063 00065 DtOverlaySegmentedLineModelAgent* myOverlayModel; 00066 00067 bool myHighlightedFlag; 00068 float myColor[4]; 00069 00070 }; 00071 } 00072