![]() |
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/DtEdgeFeatureVisualizer.h> 00012 00013 namespace makVrv 00014 { 00015 class DtSceneObjectAgent; 00016 class DtExtrudedLineModelAgent; 00017 class DtOverlaySegmentedLineModelAgent; 00018 00020 class DT_DLL_VRVCORE DtDefaultEdgeFeatureVisualizer 00021 : public DtEdgeFeatureVisualizer 00022 { 00023 public: 00025 DtDefaultEdgeFeatureVisualizer(DtDe& de, DtEdgeFeature* feature); 00026 00028 virtual ~DtDefaultEdgeFeatureVisualizer(); 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 00059 DtSceneObjectAgent* my3dAgent; 00060 DtSceneObjectAgent* my2dAgent; 00061 00063 DtExtrudedLineModelAgent* myExtrudedLineModel; 00064 00066 DtOverlaySegmentedLineModelAgent* myOverlayModel; 00067 00068 bool myHighlightedFlag; 00069 float myColor[4]; 00070 }; 00071 } 00072