![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 00002 /******************************************************************************* 00003 ** Copyright (c) 2009 MAK Technologies, Inc. 00004 ** All rights reserved. 00005 *******************************************************************************/ 00006 /******************************************************************************* 00007 * Copyright 2009 Autodesk, Inc. All rights reserved. 00008 * Use of this software is subject to the terms of the Autodesk license 00009 * agreement provided at the time of installation or download, or which otherwise 00010 * accompanies this software in either electronic or hard copy form. 00011 *******************************************************************************/ 00012 00013 00014 #pragma once 00015 00016 #include "bhaveUtil/bhaveUtilDefines.h" 00017 00018 #include "bhaveUtil/dataTransfer.h" 00019 00020 namespace BHAVE 00021 { 00023 enum DtDebugDrawingsType 00024 { 00026 SHARED_MEMORY, 00027 DRAWING_LINES_ARRAY, 00028 DRAWING_UNKNOWN 00029 00030 }; 00031 00041 class DT_DLL_bhaveUtil DtDrawingViewerBridge : public Kaim::IDrawBridge 00042 { 00043 public: 00044 DtDrawingViewerBridge(); 00045 00046 virtual ~DtDrawingViewerBridge (); 00047 00048 virtual void Line (const Kaim::Vec3f &p1, const Kaim::Vec3f &p2, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a); 00049 virtual void Point (const Kaim::Vec3f &p, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a); 00050 virtual void Text (const Kaim::Vec3f &p, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a, const char *text); 00051 }; 00052 00054 bool DT_DLL_bhaveUtil DrawingViewerInit(DrawingViewer::DtDataTransfer* viewer, unsigned int max_lines, const char* sharedpath); 00055 00057 DT_DLL_bhaveUtil bool DrawingViewerInit(DtDebugDrawingsType type, unsigned int nb_max_lines, const char* sharedpath); 00058 00060 DT_DLL_bhaveUtil void DrawingViewerLine (const Kaim::Vec3f &p1, const Kaim::Vec3f &p2, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a); 00061 DT_DLL_bhaveUtil void DrawingViewerPoint (const Kaim::Vec3f &p, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a); 00062 00066 DT_DLL_bhaveUtil void DrawingViewerReset(); 00067 00069 DT_DLL_bhaveUtil void DrawingViewerEndFrame(); 00070 00072 DT_DLL_bhaveUtil void DrawingViewerExit(); 00073 00076 DT_DLL_bhaveUtil void DrawingViewerGetReadingInfo(DrawingViewer::DtLineInfo * & startingLine, unsigned int & lineCount); 00077 00079 00080 } //namespace BHAVE 00081 00082