|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD>峡<EFBFBD><E5B3A1><EFBFBD>ܹ<EFBFBD><DCB9><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>֤Ψһ
|
|
|
|
|
|
#include <osg/Math>
|
|
|
|
|
|
#include <osgGA/GUIEventHandler>
|
|
|
|
|
|
#include <osg/RenderInfo>
|
|
|
|
|
|
#include <osgFX/Scribe>
|
|
|
|
|
|
#include <osg/View>
|
|
|
|
|
|
#include <osg/BoundingSphere>
|
|
|
|
|
|
#include <osg/ShapeDrawable>
|
|
|
|
|
|
#include <osg/Shape>
|
|
|
|
|
|
#include <osg/LineWidth>
|
|
|
|
|
|
#include <osg/PrimitiveSet>
|
|
|
|
|
|
#include <osg/LightModel>
|
|
|
|
|
|
#include <osg/ClipNode>
|
|
|
|
|
|
#include <osg/Point>
|
|
|
|
|
|
#include <osg/Depth>
|
|
|
|
|
|
#include <osgDB/ReadFile>
|
|
|
|
|
|
#include <osgUtil/PlaneIntersector>
|
|
|
|
|
|
#include <process.h>
|
|
|
|
|
|
#include <osgViewer/Renderer>
|
|
|
|
|
|
#include <osg/PolygonMode>
|
|
|
|
|
|
#include <osg/PositionAttitudeTransform>
|
|
|
|
|
|
#include <osg/MatrixTransform>
|
|
|
|
|
|
#include <osgUtil/Tessellator>
|
|
|
|
|
|
|
|
|
|
|
|
//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
#define CONSTRUCTLAYER "ConstructLayer" //<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>
|
|
|
|
|
|
#define MARKUPLAYER "MarkupLayer" //<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>
|
|
|
|
|
|
#define MODEL3DLAYER "3DModelLayer" //3Dģ<44><C4A3><EFBFBD><EFBFBD>ʾͼ<CABE><CDBC>
|
|
|
|
|
|
#define MODEL2DLAYER "2DModelLayer" //2Dģ<44><C4A3><EFBFBD><EFBFBD>ʾͼ<CABE><CDBC>
|
|
|
|
|
|
#define TEMPLAYER "TempLayer" //<2F><>ʱģ<CAB1><C4A3>ͼ<EFBFBD><CDBC>
|
|
|
|
|
|
|
|
|
|
|
|
#define WORKSPACE_NODE "WorkSpaceGroup" //<2F><><EFBFBD>ڻ<EFBFBD><DABB>ƶ<EFBFBD><C6B6><EFBFBD><EFBFBD><EFBFBD>ʱʹ<CAB1>õĽڵ㡢<DAB5><E3A1A2><EFBFBD>ƵĽڵ㶼<DAB5><E3B6BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
#define MARKTRIANGLES_NODE "MarkTrianglesGroup"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define White_Color osg::Vec4(1.0, 1.0, 1.0, 1.0)
|
|
|
|
|
|
#define Red_Color osg::Vec4(1.0, 0.0, 0.0, 1.0)
|
|
|
|
|
|
#define Green_Color osg::Vec4(0.0, 1.0, 0.0, 1.0)
|
|
|
|
|
|
#define Blue_Color osg::Vec4(0.0, 0.0, 1.0, 1.0)
|
|
|
|
|
|
#define Yello_Color osg::Vec4(1.0, 1.0, 0.0, 1.0)
|
|
|
|
|
|
|
|
|
|
|
|
#define BackGroud_Mask 0x1
|
|
|
|
|
|
#define Dragger_Mask 0x2
|
|
|
|
|
|
#define DisplayNode_Mask 0x4
|
|
|
|
|
|
#define tempModelNode_Mask 0x8
|
|
|
|
|
|
|