PxVisualDebugger.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12 
13 
14 #ifndef PX_VISUALDEBUGGER_H
15 #define PX_VISUALDEBUGGER_H
16 
17 
18 #ifdef PX_SUPPORT_VISUAL_DEBUGGER
19 #define PX_SUPPORT_VISUAL_DEBUGGER 1
21 #include "foundation/PxVec3.h"
22 #else
23 #define PX_SUPPORT_VISUAL_DEBUGGER 0
24 #endif
25 
30 #include "foundation/PxTransform.h"
31 #include "foundation/PxErrors.h"
32 #include "foundation/PxFlags.h"
33 
34 #ifndef PX_DOXYGEN
35 namespace physx { namespace debugger { namespace comm {
36 #endif
37  class PvdDataStream;
38  class PvdConnection;
39 #ifndef PX_DOXYGEN
40 }}}
41 #endif
42 
43 #ifndef PX_DOXYGEN
44 namespace physx
45 {
46 #endif
47 
48 class PxScene;
49 
54 {
55  enum Enum
56  {
57  eTRANSMIT_CONTACTS = (1 << 0),
58  eTRANSMIT_SCENEQUERIES = (1 << 1),
59  eTRANSMIT_CONSTRAINTS = (1 << 2)
60  };
61 };
62 
70 
71 
72 
76 {
77 public:
78 
83  virtual void disconnect() = 0;
84 
89  virtual void checkConnection() = 0;
90 
95  virtual physx::debugger::comm::PvdConnection* getPvdConnection() = 0;
96 
102  virtual physx::debugger::comm::PvdDataStream* getPvdDataStream(const PxScene& scene) = 0;
103 
115 
121  virtual void setVisualDebuggerFlag(PxVisualDebuggerFlag::Enum flag, bool value) = 0;
122 
127  virtual void setVisualDebuggerFlags(PxVisualDebuggerFlags flags) = 0;
128 
132  virtual PxU32 getVisualDebuggerFlags() = 0;
133 
142  virtual void updateCamera(const char* name, const PxVec3& origin, const PxVec3& up, const PxVec3& target) = 0;
143 
151  virtual void sendErrorMessage(PxErrorCode::Enum code, const char* message, const char* file, PxU32 line) = 0;
152 
153 protected:
154  virtual ~PxVisualDebugger() {}
155 };
156 
157 #ifndef PX_DOXYGEN
158 } // namespace physx
159 #endif
160 
162 #endif // PX_VISUALDEBUGGER_H


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com