AGXDynamics  2.35.0.3
agxRender/RenderProxy.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXRENDER_RENDERPROXY_H
18 #define AGXRENDER_RENDERPROXY_H
19 
20 
21 #include <agx/agxPhysics_export.h>
22 #include <agx/DynamicsSystem.h>
23 
24 namespace agxCollide
25 {
26  class Shape;
27  class Geometry;
28  class Sphere;
29  class Box;
30  class HeightField;
31  class Line;
32  class Cylinder;
33  class HollowCylinder;
34  class Capsule;
35  class Cone;
36  class HollowCone;
37  class Trimesh;
38  class Plane;
39  class WireShape;
40 }
41 
42 namespace agxSDK
43 {
44  class Simulation;
45 }
46 
47 namespace agxRender
48 {
49 
50 
69  };
70 
72 
77  {
78  public:
79 
81  enum EventType {
88  RENDERMODE
89  };
90 
91  enum RenderMode {
92  NOT_SET = 0x0,
93  SOLID = 0x1,
94  WIREFRAME = 0x2
95  };
96 
98  RenderProxy( PrimitiveType type, agxCollide::Shape *shape = nullptr );
99 
101  PrimitiveType getType() const;
102 
104  virtual void setTransform( const agx::AffineMatrix4x4& transform );
105 
109  virtual void setColor( const agx::Vec3& color );
110 
114  virtual agx::Vec3 getColor() const;
115 
116 
120  virtual void setAlpha( float alpha );
121 
123  virtual float getAlpha() const;
124 
128  virtual void updateShape() {}
129 
130 
132  const agx::AffineMatrix4x4& getTransform() const;
133 
140  agx::UInt32 getModifiedCount() const;
141 
142 
143  const agxCollide::Shape *getShape() const;
144  const agxCollide::Geometry *getGeometry() const;
145 
147  bool compare() const;
148 
153  void callOnChange( EventType type );
154 
159  void setEnable( bool flag );
160 
162  bool getEnable() const;
163 
165  inline bool isEnabled() const { return getEnable(); }
166 
171  void setRenderMode( RenderMode mode );
172 
174  RenderMode getRenderMode( ) const;
175 
177  virtual void reset();
178 
182  static agx::Bool shouldRender( const agx::RigidBody* rb );
183 
184  protected:
188  virtual void synchronizeParameters() {}
189 
195  virtual void onChange( EventType /*type*/ ) {}
196 
197  friend class RenderManager;
198  void setModifiedCount( agx::UInt32 c );
200  void setShape( agxCollide::Shape* shape, const agxCollide::Geometry *geometry );
201 
203  virtual ~RenderProxy();
204 
207 
208  private:
209  PrimitiveType m_type;
210  const agxCollide::Geometry* m_geometry;
211  agx::UInt32 m_modifiedCount;
212  float m_alpha;
213  agx::Vec3 m_color;
214  bool m_enable;
215  agx::Int32 m_renderMode;
216  };
217 
220  {
221  public:
222 
224  TextProxy( const agx::String& text, const agx::Vec3& pos );
225 
226  void set( const agx::String& text, const agx::Vec3& pos ) {
227  m_text = text;
228  m_transform.setTranslate( pos[0], pos[1], pos[2] );
229  callOnChange( SHAPE );
230  }
232  return m_text;
233  }
235  return m_transform.getTranslate();
236  }
237 
238  protected:
239  virtual ~TextProxy() {}
241  };
242 
245  {
246  public:
247 
249  PlaneProxy( const agx::Vec3& normal, agx::Real distance );
250 
251  void set( const agx::Vec3& normal, agx::Real distance ) {
252  m_normal = normal;
253  m_distance = distance;
254  callOnChange( SHAPE );
255  }
256 
258  const agxCollide::Plane *getCastShape() const;
259 
261  return m_normal;
262  }
264  return m_distance;
265  }
266 
267  protected:
268 
269  void synchronizeParameters();
270 
271  virtual ~PlaneProxy() {}
274  };
275 
278  {
279  public:
280 
281  SphereProxy() : RenderProxy( PRIMITIVE_SPHERE ), m_radius( 0 ) {}
282  SphereProxy( float radius );
283 
284  void set( float radius ) {
285  m_radius = radius;
286  callOnChange( SHAPE );
287  }
288 
289  float getRadius() const {
290  return m_radius;
291  }
292 
294  const agxCollide::Sphere *getCastShape() const;
295 
296  protected:
297 
298  void synchronizeParameters();
299 
300  virtual ~SphereProxy() {}
301  float m_radius;
302  };
303 
306  {
307  public:
308 
310  LineProxy( const agx::Vec3& p1, const agx::Vec3& p2 );
311 
312  void set( const agx::Vec3& p1, const agx::Vec3& p2 ) {
313  m_p1 = p1;
314  m_p2 = p2;
315  callOnChange( SHAPE );
316  }
317  agx::Vec3 getP1() const {
318  return m_p1;
319  }
320  agx::Vec3 getP2() const {
321  return m_p2;
322  }
323 
325  const agxCollide::Line *getCastShape() const;
326 
327  protected:
328 
329  void synchronizeParameters();
330 
331  virtual ~LineProxy() {}
334  };
335 
338  {
339  public:
340 
342  CylinderProxy( float radius, float height );
343  CylinderProxy( const agx::Vec3& begin, const agx::Vec3& end, float radius );
344 
345  void set( float radius, float height ) {
346  m_radius = radius;
347  m_height = height;
348  callOnChange( SHAPE );
349  }
350  void set( const agx::Vec3& begin, const agx::Vec3& end, float radius );
351 
353  float getRadius() const {
354  return m_radius;
355  }
356 
358  float getHeight() const {
359  return m_height;
360  }
361 
363  const agxCollide::Cylinder *getCastShape() const;
364 
365  protected:
366 
367  void synchronizeParameters();
368 
369  virtual ~CylinderProxy() {}
370  float m_height;
371  float m_radius;
372  };
373 
374 
377  {
378  public:
379 
381  HollowCylinderProxy( float radius, float height, float thickness );
382  HollowCylinderProxy( const agx::Vec3& begin, const agx::Vec3& end, float radius, float thickness );
383 
384  void set( float radius, float height, float thickness ) {
385  m_radius = radius;
386  m_height = height;
387  m_thickness = thickness;
388  callOnChange( SHAPE );
389  }
390 
391  void set( const agx::Vec3& begin, const agx::Vec3& end, float radius, float thickness );
392 
394  float getRadius() const {
395  return m_radius;
396  }
397 
399  float getHeight() const {
400  return m_height;
401  }
402 
404  float getThickness() const {
405  return m_thickness;
406  }
407 
409  const agxCollide::HollowCylinder *getCastShape() const;
410 
411  protected:
412  void synchronizeParameters();
413 
414  virtual ~HollowCylinderProxy() {}
415  float m_height;
416  float m_radius;
417  float m_thickness;
418  };
419 
420 
421 
424  {
425  public:
426 
428  ConeProxy( float radius, float height );
429  ConeProxy( const agx::Vec3& begin, const agx::Vec3& end, float radius );
430 
431  void set( float radius, float height ) {
432  m_radius = radius;
433  m_height = height;
434  callOnChange( SHAPE );
435  }
436 
437  void set( const agx::Vec3& begin, const agx::Vec3& end, float radius );
438 
440  float getRadius() const {
441  return m_radius;
442  }
443 
445  float getHeight() const {
446  return m_height;
447  }
448 
449 
451  const agxCollide::Cone *getCastShape() const;
452  protected:
453 
454  void synchronizeParameters();
455 
456  virtual ~ConeProxy() {}
457  float m_radius;
458  float m_height;
459  };
460 
463  {
464  public:
465 
467  TruncatedConeProxy( float topRadius, float bottomRadius, float height );
468  TruncatedConeProxy( const agx::Vec3& begin, const agx::Vec3& end, float topRadius, float bottomRadius );
469 
470  void set( float topRadius, float bottomRadius, float height ) {
471  m_topRadius = topRadius;
472  m_bottomRadius = bottomRadius;
473  m_height = height;
474  callOnChange( SHAPE );
475  }
476 
477  void set( const agx::Vec3& top, const agx::Vec3& bottom, float topRadius, float bottomRadius );
478 
480  float getTopRadius() const {
481  return m_topRadius;
482  }
483 
485  float getBottomRadius() const {
486  return m_bottomRadius;
487  }
488 
490  float getHeight() const {
491  return m_height;
492  }
493 
494 
496  const agxCollide::Cone *getCastShape() const;
497  protected:
498 
499  void synchronizeParameters();
500 
501  virtual ~TruncatedConeProxy() {}
502  float m_topRadius;
504  float m_height;
505  };
506 
509  {
510  public:
511 
513  HollowTruncatedConeProxy( float topRadius, float bottomRadius, float height, float thickness );
514  HollowTruncatedConeProxy( const agx::Vec3& begin, const agx::Vec3& end, float topRadius, float bottomRadius, float thickness );
515 
516  void set( float topRadius, float bottomRadius, float height, float thickness ) {
517  m_topRadius = topRadius;
518  m_bottomRadius = bottomRadius;
519  m_height = height;
520  m_thickness = thickness;
521  callOnChange( SHAPE );
522  }
523 
524  void set( const agx::Vec3& top, const agx::Vec3& bottom, float topRadius, float bottomRadius, float thickness );
525 
527  float getTopRadius() const {
528  return m_topRadius;
529  }
530 
532  float getBottomRadius() const {
533  return m_bottomRadius;
534  }
535 
537  float getHeight() const {
538  return m_height;
539  }
540 
542  float getThickness() const {
543  return m_thickness;
544  }
545 
546 
548  const agxCollide::HollowCone *getCastShape() const;
549  protected:
550 
551  void synchronizeParameters();
552 
554  float m_topRadius;
556  float m_height;
557  float m_thickness;
558  };
559 
560 
563  {
564  public:
565 
567  CapsuleProxy( float radius, float height );
568  CapsuleProxy( const agx::Vec3& begin, const agx::Vec3& end, float radius );
569 
570  void set( float radius, float height ) {
571  m_radius = radius;
572  m_height = height;
573  callOnChange( SHAPE );
574  }
575 
576  void set( const agx::Vec3& begin, const agx::Vec3& end, float radius );
577 
578 
580  float getRadius() const {
581  return m_radius;
582  }
583 
585  float getHeight() const {
586  return m_height;
587  }
588 
590  const agxCollide::Capsule *getCastShape() const;
591 
592  protected:
593 
594  void synchronizeParameters();
595 
596  virtual ~CapsuleProxy() {}
597  float m_height;
598  float m_radius;
599  };
600 
601 
604  {
605  public:
606 
608  WireShapeProxy( float radius, float height,
609  const agx::Vec3& previousEndPoint0, const agx::Vec3& previousEndPoint1 );
610  WireShapeProxy( const agx::Vec3& begin, const agx::Vec3& end,
611  const agx::Vec3& previousEndPoint0, const agx::Vec3& previousEndPoint1, float radius );
612 
613  void set( float radius, float height) {
614  m_radius = radius;
615  m_height = height;
616  callOnChange( SHAPE );
617  }
618 
619  void set( float radius, float height,
620  const agx::Vec3& previousEndPoint0, const agx::Vec3& previousEndPoint1)
621  {
622  m_radius = radius;
623  m_height = height;
624  m_previousEndPoint0 = previousEndPoint0;
625  m_previousEndPoint1 = previousEndPoint1;
626  callOnChange( SHAPE );
627  }
628 
629  void set( const agx::Vec3& begin, const agx::Vec3& end,
630  const agx::Vec3& previousEndPoint0, const agx::Vec3& previousEndPoint1, float radius );
631 
632 
634  float getRadius() const {
635  return m_radius;
636  }
637 
639  float getHeight() const {
640  return m_height;
641  }
642 
645  {
646  return m_previousEndPoint0;
647  }
648 
649 
652  {
653  return m_previousEndPoint1;
654  }
655 
656 
658  const agxCollide::WireShape *getCastShape() const;
659 
660  protected:
661  void synchronizeParameters();
662 
663  virtual ~WireShapeProxy() {}
664 
667  float m_height;
668  float m_radius;
669  };
670 
671 
674  {
675  public:
676 
678  BoxProxy( const agx::Vec3& halfExtents );
679 
681  void set( const agx::Vec3& halfExtents ) {
682  m_halfExtents = halfExtents;
683  callOnChange( SHAPE );
684  }
685 
687  return m_halfExtents;
688  }
689 
691  const agxCollide::Box *getCastShape() const;
692 
693  protected:
694 
695  void synchronizeParameters();
696 
697 
698  virtual ~BoxProxy() {}
699 
701  };
702 
705  {
706  public:
707 
709 
711 
717  void setHeights(const agx::Vec2iVector& modifiedIndices, const agx::RealVector& heights);
718 
720  const agxCollide::HeightField *getCastShape() const;
721 
722  protected:
723 
728  virtual void set( const agx::Vec2iVector& modifiedIndices, const agx::RealVector& heights )=0;
729 
731  virtual ~HeightFieldProxy() {}
732 
734  return *this;
735  }
736  };
737 
740  {
741  public:
742 
744 
746 
747  void set( agxCollide::Trimesh *mesh );
748 
749  const agxCollide::Trimesh *getCastShape() const;
750 
751  protected:
752  virtual ~TrimeshProxy() {}
754  return *this;
755  }
756  };
757 
758 #if 0
759  class AGXPHYSICS_EXPORT SphereSpriteBatchRenderProxy : public RenderProxy
760  {
761  public:
762  SphereSpriteBatchRenderProxy() : RenderProxy( PRIMITIVE_SPHERE_BATCH )
763  {
764  this->setColor(agx::Vec3(agx::Real(0.9)));
765  }
766 
767  // SphereSpriteBatchRenderProxy( agxData::Buffer *positions, agxData::Buffer *radii, agxData::Value *bound )
768  // : RenderProxy( PRIMITIVE_SPHERE_BATCH ), m_positions(positions), m_radii(radii), m_bound(bound) {}
769 
770  #if 0
771  // void set( agxData::Array<agx::Vec3> positions, agxData::Array<agx::Real> radii, agx::Bound3 bound )
772  void set( agxData::Buffer *positions, agxData::Buffer *radii, agxData::Value *bound )
773  {
774  m_positions = positions;
775  m_radii = radii;
776  m_bound = bound;
777  callOnChange( SHAPE );
778  }
779  #endif
780 
781  protected:
782  virtual ~SphereSpriteBatchRenderProxy() {}
783 
784  protected:
785  // agxData::Array< agx::Vec3 > m_positions;
786  // agxData::Array< agx::Real > m_radii;
787  // agx::Bound3 m_bound;
788  // agxData::BufferRef m_positions;
789  // agxData::BufferRef m_radii;
790  // agxData::ValueRef m_bound;
791  };
792 
793  typedef agx::ref_ptr< SphereSpriteBatchRenderProxy > SphereSpriteBatchRenderProxyRef;
794 
795 
796  class AGXPHYSICS_EXPORT SphereMeshBatchRenderProxy : public RenderProxy
797  {
798  public:
799  SphereMeshBatchRenderProxy( const agxData::Array< agx::Vec3 >* buffer )
800  : RenderProxy( PRIMITIVE_SPHERE ), m_buffer( buffer ) {}
801 
802  void set( const agxData::Array< agx::Vec3 >* buffer, float /*radius*/ )
803  {
804  m_buffer = buffer;
805  callOnChange( SHAPE );
806  }
807 
808  protected:
809  virtual ~SphereMeshBatchRenderProxy() {}
810 
811  protected:
812  const agxData::Array< agx::Vec3 >* m_buffer;
813  };
814 
815  typedef agx::ref_ptr< SphereMeshBatchRenderProxy > SphereMeshBatchRenderProxyRef;
816 #endif
817 
822  {
823  public:
825 
826  void set( const agxCollide::GeometryContactPtrVector& contacts, float scale )
827  {
828  m_contacts = &contacts;
829  m_scale = scale;
830  callOnChange( SHAPE );
831  }
832 
833  const agxCollide::GeometryContactPtrVector& getContacts() const { return *m_contacts; }
834 
835  protected:
836  ContactsProxy() : RenderProxy( PRIMITIVE_CONTACTS ), m_contacts(nullptr), m_scale(1) {}
837 
838  virtual ~ContactsProxy() {}
840  float m_scale;
841  };
842 
847  {
848  public:
850 
851  public:
853  : RenderProxy( PRIMITIVE_SPHERE ), m_bodies(), m_scale( 1.f ) {}
854 
855  void set( const agx::RigidBodyPtrSetVector* enabledBodies, float scale )
856  {
857  m_bodies.clear();
858  if ( enabledBodies != nullptr ) {
859  m_bodies.reserve( enabledBodies->size() );
860  for ( agx::UInt i = 0; i < enabledBodies->size(); ++i ) {
861  const agx::RigidBody* rb = enabledBodies->at( i );
862  if ( RenderProxy::shouldRender( rb ) )
863  m_bodies.push_back( rb );
864  }
865  }
866  m_scale = scale;
867  callOnChange( SHAPE );
868  }
869 
870  protected:
872 
873  protected:
875  float m_scale;
876  };
877 
879  {
880  public:
881  struct SegmentDef
882  {
883  SegmentDef( const agx::Vec3& sp, const agx::Vec3& ep, float r )
884  : startPoint( sp ), endPoint( ep ), radius( r ) {}
885 
886  const SegmentDef* operator->() const { return this; }
887 
888  agx::AffineMatrix4x4 getTransform() const;
889  agx::Vec3f getScale() const;
890 
893  float radius;
894  };
895 
896  struct SphereDef
897  {
898  SphereDef( const agx::Vec3& p )
899  : point( p ) {}
900 
901  const SphereDef* operator->() const { return this; }
902  agx::AffineMatrix4x4 getTransform() const;
903 
905  };
906 
909 
910  public:
911  WireRenderProxy( float radius, const agx::Vec3& color );
912 
916  virtual void onAddNotification() {}
917 
921  virtual void onRemoveNotification() {}
922 
926  void prepare( agx::UInt numSegmentEstimate, agx::UInt numEdgesEstimate, agx::UInt numNodesEstimate );
927 
931  void commit();
932 
936  void addSegment( const agx::Vec3& startPoint, const agx::Vec3& endPoint, const agx::Vec3& prevStartPoint, const agx::Vec3& prevEndPoint );
937 
941  void addSegment( const agx::Vec3& startPoint, const agx::Vec3& endPoint, float radius, const agx::Vec3& color, agxRender::RenderManager* manager ) const;
942 
946  void addEdge( const agx::Vec3& startPoint, const agx::Vec3& endPoint );
947 
951  void addNode( const agx::Vec3& point );
952 
956  void addNode( const agx::Vec3& point, float radius, const agx::Vec3& color, agxRender::RenderManager* manager ) const;
957 
958  protected:
959  virtual ~WireRenderProxy() {}
960 
961  protected:
962  float m_radius;
966  };
967 
969 
970  // -------- Implementation ----------------
971 
972  inline PrimitiveType RenderProxy::getType() const { return m_type; }
973 
977  }
979  return m_transform;
980  }
981 
982  inline void RenderProxy::setColor( const agx::Vec3& color ) {
983  if (!agx::equivalent(m_color, color)) {
984  m_color = color;
985  callOnChange( COLOR );
986  }
987  }
988 
990  return m_color;
991  }
992 
993  inline void RenderProxy::setAlpha( float alpha ) {
994 
995  if (!agx::equivalent(m_alpha, alpha)) {
996  m_alpha = alpha;
997  callOnChange( ALPHA );
998  }
999  }
1000 
1001  inline float RenderProxy::getAlpha() const {
1002  return m_alpha;
1003  }
1004 
1006  m_modifiedCount = c;
1007  }
1008 
1010  return m_modifiedCount;
1011  }
1012 
1013  inline void RenderProxy::setShape( agxCollide::Shape* shape, const agxCollide::Geometry *geometry ) {
1014  m_shape = shape;
1015  m_geometry = geometry;
1017  //callOnChange( SHAPE );
1018  }
1019 
1021  return m_shape;
1022  }
1023 
1025  return m_geometry;
1026  }
1027 
1028  inline void RenderProxy::setEnable( bool flag ) {
1029  if (m_enable != flag)
1030  {
1031  m_enable = flag;
1032  callOnChange( ENABLE );
1033  }
1034  }
1035 
1036  inline bool RenderProxy::getEnable() const {
1037  return m_enable;
1038  }
1039 
1041  if ( mode != m_renderMode ) {
1042  m_renderMode = ( RenderMode )mode;
1044  }
1045  }
1046 
1048  return ( RenderMode )m_renderMode;
1049  }
1050 
1051  inline void HeightFieldProxy::setHeights(const agx::Vec2iVector& modifiedIndices, const agx::RealVector& heights)
1052  {
1053  agxAssert(modifiedIndices.size() == heights.size() );
1054 
1055  set( modifiedIndices, heights );
1056 
1057  // Sync modified count
1059  }
1060 
1062  {
1064  }
1065 
1067  {
1068  return agx::Vec3f( radius, radius, (float)startPoint.distance( endPoint ) );
1069  }
1070 
1072  {
1073  return agx::AffineMatrix4x4::translate( point );
1074  }
1075 }
1076 
1077 #endif
agxCollide::Box
A box shape for geometric intersection tests.
Definition: Box.h:32
agxPhysics_export.h
agxRender::RenderProxy::updateShape
virtual void updateShape()
Called when a Shape has been changed (for example radius on a sphere is changed).
Definition: agxRender/RenderProxy.h:128
agxRender::WireRenderProxy::SegmentDef::startPoint
agx::Vec3 startPoint
Definition: agxRender/RenderProxy.h:891
agxRender::PlaneProxy::set
void set(const agx::Vec3 &normal, agx::Real distance)
Definition: agxRender/RenderProxy.h:251
agxRender::PRIMITIVE_HOLLOW_CYLINDER
@ PRIMITIVE_HOLLOW_CYLINDER
Definition: agxRender/RenderProxy.h:65
agxRender::RenderProxy::setRenderMode
void setRenderMode(RenderMode mode)
Set the render mode for this Proxy.
Definition: agxRender/RenderProxy.h:1040
agxRender::RenderProxy::callOnChange
void callOnChange(EventType type)
Explicitly fires event of type.
agx::end
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Definition: LinearProbingHashSet.h:612
agxData::Value
Abstract representation of a value.
Definition: Value.h:42
agxRender::WireShapeProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:668
agxRender::HollowCylinderProxy::~HollowCylinderProxy
virtual ~HollowCylinderProxy()
Definition: agxRender/RenderProxy.h:414
agxRender::WireShapeProxy::getRadius
float getRadius() const
Definition: agxRender/RenderProxy.h:634
agxRender::RenderProxy::COLOR
@ COLOR
The color value for a proxy is updated.
Definition: agxRender/RenderProxy.h:85
agxRender::RenderProxy::EventType
EventType
Enum for specifying a type of event which might change a RenderProxy.
Definition: agxRender/RenderProxy.h:81
agxCollide::Capsule
Implements a Capsule shape for geometric intersection tests.
Definition: Capsule.h:34
agxRender::HollowCylinderProxy::m_thickness
float m_thickness
Definition: agxRender/RenderProxy.h:417
agxRender::CapsuleProxy::CapsuleProxy
CapsuleProxy()
Definition: agxRender/RenderProxy.h:566
agxRender::WireRenderProxy::SegmentDef
Definition: agxRender/RenderProxy.h:881
agx::Real
double Real
Definition: Real.h:42
agxCollide::Cylinder
A cylinder shape for geometric intersection tests.
Definition: Cylinder.h:36
agxRender::SphereProxy::~SphereProxy
virtual ~SphereProxy()
Definition: agxRender/RenderProxy.h:300
agx::equivalent
AGXPHYSICS_EXPORT agx::Bool equivalent(const agx::AddedMassInteraction::Matrix6x6 &lhs, const agx::AddedMassInteraction::Matrix6x6 &rhs, agx::Real eps=agx::RealEpsilon)
agxRender::NUM_PRIMITIVES
@ NUM_PRIMITIVES
Definition: agxRender/RenderProxy.h:68
agxRender::WireRenderProxy::onAddNotification
virtual void onAddNotification()
Called when the wire is added to the simulation.
Definition: agxRender/RenderProxy.h:916
agxData::transform
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
agxRender::CapsuleProxy::set
void set(float radius, float height)
Definition: agxRender/RenderProxy.h:570
agxRender::RenderProxy::setEnable
void setEnable(bool flag)
Toggle this proxy for rendering on/off.
Definition: agxRender/RenderProxy.h:1028
agxRender
Namespace containing classes for handling debug rendering of collision geometries,...
Definition: Constraint.h:35
agxRender::LineProxy::getP1
agx::Vec3 getP1() const
Definition: agxRender/RenderProxy.h:317
agxRender::HollowTruncatedConeProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:556
agxCollide::Sphere
A sphere class for geometric intersection tests.
Definition: Sphere.h:31
agxRender::CapsuleProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:585
agx::Vector< const agx::RigidBody * >
agxRender::TruncatedConeProxy::getTopRadius
float getTopRadius() const
Definition: agxRender/RenderProxy.h:480
agxRender::LineProxy::getP2
agx::Vec3 getP2() const
Definition: agxRender/RenderProxy.h:320
agx::AffineMatrix4x4T< Real >::rotate
static AffineMatrix4x4T< Real > rotate(const Vec3T< Real > &from, const Vec3T< Real > &to)
Return a matrix which rotate a vector from from to to.
Definition: AffineMatrix4x4.h:673
agxRender::TextProxy::~TextProxy
virtual ~TextProxy()
Definition: agxRender/RenderProxy.h:239
agxRender::HollowCylinderProxy::set
void set(float radius, float height, float thickness)
Definition: agxRender/RenderProxy.h:384
agxRender::BoxProxy::~BoxProxy
virtual ~BoxProxy()
Definition: agxRender/RenderProxy.h:698
agxRender::WireRenderProxy::SegmentDef::getScale
agx::Vec3f getScale() const
Definition: agxRender/RenderProxy.h:1066
agxRender::PlaneProxy::PlaneProxy
PlaneProxy()
Definition: agxRender/RenderProxy.h:248
agxRender::RenderProxy::m_transform
agx::AffineMatrix4x4 m_transform
Definition: agxRender/RenderProxy.h:206
agx::Container::size
size_t size() const
Definition: Container.h:134
agxCollide::Plane
Definition: ollide/Plane.h:34
agxRender::CapsuleProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:597
agxRender::ConeProxy
Subclass that implements a ConeProxy.
Definition: agxRender/RenderProxy.h:423
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
agxRender::HollowTruncatedConeProxy::m_topRadius
float m_topRadius
Definition: agxRender/RenderProxy.h:554
agxRender::RenderProxy::ENABLE
@ ENABLE
A RenderProxy is enabled/disabled.
Definition: agxRender/RenderProxy.h:82
agxRender::RenderProxy::RENDERMODE
@ RENDERMODE
The RenderMode has been changed.
Definition: agxRender/RenderProxy.h:88
agxRender::PRIMITIVE_CONTACTS
@ PRIMITIVE_CONTACTS
Definition: agxRender/RenderProxy.h:64
agxRender::HollowCylinderProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:399
agx::AffineMatrix4x4T< Real >::translate
static AffineMatrix4x4T< Real > translate(const Vec3T< Real > &dv)
Return a matrix which translates according to dv.
Definition: AffineMatrix4x4.h:657
agxRender::TextProxy::set
void set(const agx::String &text, const agx::Vec3 &pos)
Definition: agxRender/RenderProxy.h:226
agxRender::TruncatedConeProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:490
agxRender::TrimeshProxy::TrimeshProxy
TrimeshProxy()
Definition: agxRender/RenderProxy.h:743
agxRender::WireRenderProxy::SphereDef::operator->
const SphereDef * operator->() const
Definition: agxRender/RenderProxy.h:901
agx::SetVector::size
size_t size() const
Return the number of inserted elements.
Definition: SetVector.h:114
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Definition: RenderManager.h:106
agxRender::WireRenderProxy::SphereDef::getTransform
agx::AffineMatrix4x4 getTransform() const
Definition: agxRender/RenderProxy.h:1071
agxRender::WireRenderProxy::SegmentDef::SegmentDef
SegmentDef(const agx::Vec3 &sp, const agx::Vec3 &ep, float r)
Definition: agxRender/RenderProxy.h:883
agxData::getType
AGXCORE_EXPORT Type * getType(const agx::String &name)
agxRender::HeightFieldProxy
Subclass that implements a HeightfieldProxy.
Definition: agxRender/RenderProxy.h:704
agxRender::RenderProxy::getModifiedCount
agx::UInt32 getModifiedCount() const
This value tells us that if the proxy is synchronized with the associated shape.
Definition: agxRender/RenderProxy.h:1009
agx::AffineMatrix4x4T< Real >
agxRender::PRIMITIVE_TRIANGLE
@ PRIMITIVE_TRIANGLE
Definition: agxRender/RenderProxy.h:61
agxRender::PRIMITIVE_HOLLOW_TRUNCATED_CONE
@ PRIMITIVE_HOLLOW_TRUNCATED_CONE
Definition: agxRender/RenderProxy.h:67
agxRender::RenderProxy::ALPHA
@ ALPHA
The alpha value for a proxy is updated.
Definition: agxRender/RenderProxy.h:84
agxRender::HollowCylinderProxy::HollowCylinderProxy
HollowCylinderProxy()
Definition: agxRender/RenderProxy.h:380
agxRender::HeightFieldProxy::HeightFieldProxy
HeightFieldProxy()
Definition: agxRender/RenderProxy.h:708
agxRender::CapsuleProxy
Subclass that implements a CapsuleProxy.
Definition: agxRender/RenderProxy.h:562
agxRender::ContactsProxy::m_scale
float m_scale
Definition: agxRender/RenderProxy.h:840
agxRender::TrimeshProxy::operator=
TrimeshProxy & operator=(const TrimeshProxy &)
Definition: agxRender/RenderProxy.h:753
agxRender::LineProxy::m_p1
agx::Vec3 m_p1
Definition: agxRender/RenderProxy.h:332
agxCollide::HeightField
A HeightField is a collision shape that can be created from a grid structure, like an image.
Definition: agxCollide/HeightField.h:51
agxAssert
#define agxAssert(expr)
Definition: debug.h:143
agx::Vec3T< Real >::Z_AXIS
static Vec3T Z_AXIS()
Definition: Vec3Template.h:789
agxRender::TruncatedConeProxy::~TruncatedConeProxy
virtual ~TruncatedConeProxy()
Definition: agxRender/RenderProxy.h:501
agxRender::WireRenderProxy::~WireRenderProxy
virtual ~WireRenderProxy()
Definition: agxRender/RenderProxy.h:959
agxRender::WireRenderProxy::onRemoveNotification
virtual void onRemoveNotification()
Called when the wire is removed from the simulation.
Definition: agxRender/RenderProxy.h:921
agxRender::HollowTruncatedConeProxy::m_thickness
float m_thickness
Definition: agxRender/RenderProxy.h:557
agxRender::WireRenderProxy::m_nodes
SphereDefContainer m_nodes
Definition: agxRender/RenderProxy.h:965
agxRender::RenderProxy::getType
PrimitiveType getType() const
Definition: agxRender/RenderProxy.h:972
agxRender::HeightFieldProxy::operator=
HeightFieldProxy & operator=(const HeightFieldProxy &)
Definition: agxRender/RenderProxy.h:733
agxRender::TruncatedConeProxy
Subclass that implements a TruncatedConeProxy.
Definition: agxRender/RenderProxy.h:462
agxRender::ConeProxy::~ConeProxy
virtual ~ConeProxy()
Definition: agxRender/RenderProxy.h:456
agxRender::BoxProxy
Subclass that implements a BoxProxy.
Definition: agxRender/RenderProxy.h:673
agxRender::HollowTruncatedConeProxy::set
void set(float topRadius, float bottomRadius, float height, float thickness)
Definition: agxRender/RenderProxy.h:516
agxCollide::HollowCone
A right circular hollow cone shape for geometric intersection tests.
Definition: HollowCone.h:45
agxRender::RenderProxy::setTransform
virtual void setTransform(const agx::AffineMatrix4x4 &transform)
Set the transform of this RenderProxy, if overridden, set the m_transform and call onUpdate(TRANSFORM...
Definition: agxRender/RenderProxy.h:974
agxRender::HeightFieldProxy::~HeightFieldProxy
virtual ~HeightFieldProxy()
Destructor.
Definition: agxRender/RenderProxy.h:731
agxRender::CylinderProxy::~CylinderProxy
virtual ~CylinderProxy()
Definition: agxRender/RenderProxy.h:369
agxRender::ConeProxy::getRadius
float getRadius() const
Definition: agxRender/RenderProxy.h:440
agx::VectorPOD
Vector containing 'raw' data.
Definition: Vector.h:245
agxRender::CylinderProxy::set
void set(float radius, float height)
Definition: agxRender/RenderProxy.h:345
agxRender::PlaneProxy::~PlaneProxy
virtual ~PlaneProxy()
Definition: agxRender/RenderProxy.h:271
agx::observer_ptr< agxCollide::Shape >
agxCollide::HollowCylinder
A hollow cylinder shape for geometric intersection tests.
Definition: HollowCylinder.h:44
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxCollide::WireShape
Internal class used by agxWire::Wire.
Definition: WireShape.h:44
agxRender::RenderProxy::onChange
virtual void onChange(EventType)
Pure virtual method that should response on the different events.
Definition: agxRender/RenderProxy.h:195
agxRender::RenderProxy::getShape
const agxCollide::Shape * getShape() const
Definition: agxRender/RenderProxy.h:1020
agx::begin
LinearProbingHashSetImplementation< KeyT, HashT >::iterator begin(LinearProbingHashSetImplementation< KeyT, HashT > &set)
Definition: LinearProbingHashSet.h:606
agxRender::PlaneProxy::getNormal
agx::Vec3 getNormal() const
Definition: agxRender/RenderProxy.h:260
agxRender::RenderProxy::SHAPE
@ SHAPE
The Shape has been modified a rebuild is needed.
Definition: agxRender/RenderProxy.h:86
agxData::Array
Type-specific Array used for fast access into the data held by a Buffer.
Definition: agxData.h:30
agxRender::CylinderProxy::CylinderProxy
CylinderProxy()
Definition: agxRender/RenderProxy.h:341
agxRender::PRIMITIVE_SPHERE_BATCH
@ PRIMITIVE_SPHERE_BATCH
Definition: agxRender/RenderProxy.h:62
agxRender::TextProxy
Subclass that implements a TextProxy.
Definition: agxRender/RenderProxy.h:219
agxRender::WireShapeProxy::getPreviousEndPoint0
agx::Vec3 getPreviousEndPoint0() const
Definition: agxRender/RenderProxy.h:644
agxRender::CapsuleProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:598
agxRender::PlaneProxy::m_distance
agx::Real m_distance
Definition: agxRender/RenderProxy.h:272
agxRender::HollowTruncatedConeProxy::getBottomRadius
float getBottomRadius() const
Definition: agxRender/RenderProxy.h:532
agxRender::RenderProxy::getEnable
bool getEnable() const
Definition: agxRender/RenderProxy.h:1036
agxRender::WireShapeProxy::~WireShapeProxy
virtual ~WireShapeProxy()
Definition: agxRender/RenderProxy.h:663
agxRender::RenderProxy::REMOVE
@ REMOVE
The Shape has been removed from space, need to be removed from rendering.
Definition: agxRender/RenderProxy.h:87
agxRender::WireRenderProxy::m_segments
SegmentDefContainer m_segments
Definition: agxRender/RenderProxy.h:963
agxRender::RenderProxy::synchronizeParameters
virtual void synchronizeParameters()
This method should be implemented so that it extracts size parameters from an associated shape and st...
Definition: agxRender/RenderProxy.h:188
agxRender::RigidBodyBatchRenderProxy
Class holding rigid bodies that makes it possible to batch render these objects.
Definition: agxRender/RenderProxy.h:846
agxRender::CylinderProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:371
agxRender::RenderProxy::RenderMode
RenderMode
Definition: agxRender/RenderProxy.h:91
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agxRender::WireRenderProxy::SphereDef::SphereDef
SphereDef(const agx::Vec3 &p)
Definition: agxRender/RenderProxy.h:898
agxIO::EventType
EventType
Definition: Events.h:37
agxRender::ConeProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:458
agxRender::HollowCylinderProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:415
agxCollide::Shape
Base class for a shape.
Definition: Shape.h:53
agxRender::ConeProxy::set
void set(float radius, float height)
Definition: agxRender/RenderProxy.h:431
agxRender::ConeProxy::ConeProxy
ConeProxy()
Definition: agxRender/RenderProxy.h:427
agx::SetVector< RigidBody * >
agx::SetVector::at
const DataT & at(size_t index) const
Access an element in the vector using an index.
Definition: SetVector.h:484
agxRender::HollowCylinderProxy
Subclass that implements a CylinderProxy.
Definition: agxRender/RenderProxy.h:376
agxRender::WireRenderProxy::m_edges
SegmentDefContainer m_edges
Definition: agxRender/RenderProxy.h:964
agxRender::RigidBodyBatchRenderProxy::set
void set(const agx::RigidBodyPtrSetVector *enabledBodies, float scale)
Definition: agxRender/RenderProxy.h:855
agxRender::LineProxy::m_p2
agx::Vec3 m_p2
Definition: agxRender/RenderProxy.h:333
agxRender::WireRenderProxyRef
agx::ref_ptr< WireRenderProxy > WireRenderProxyRef
Definition: agxRender/RenderProxy.h:968
agxRender::BoxProxy::set
void set(const agx::Vec3 &halfExtents)
Set the size of the box, will trigger onChange(SHAPE)
Definition: agxRender/RenderProxy.h:681
agxRender::PlaneProxy::getDistance
agx::Real getDistance() const
Definition: agxRender/RenderProxy.h:263
agxRender::TextProxy::TextProxy
TextProxy()
Definition: agxRender/RenderProxy.h:223
agxRender::CapsuleProxy::getRadius
float getRadius() const
Definition: agxRender/RenderProxy.h:580
agxRender::BoxProxy::m_halfExtents
agx::Vec3 m_halfExtents
Definition: agxRender/RenderProxy.h:700
agxRender::PlaneProxy
Subclass that implements a PlaneProxy.
Definition: agxRender/RenderProxy.h:244
agxCollide::Line
A line shape for intersection tests, mostly for depth sensing and picking.
Definition: ollide/Line.h:55
agxRender::RenderProxy::shouldRender
static agx::Bool shouldRender(const agx::RigidBody *rb)
agxRender::PRIMITIVE_CONE
@ PRIMITIVE_CONE
Definition: agxRender/RenderProxy.h:55
agxRender::WireShapeProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:667
agxRender::PRIMITIVE_TRUNCATED_CONE
@ PRIMITIVE_TRUNCATED_CONE
Definition: agxRender/RenderProxy.h:66
agxRender::SphereProxy::SphereProxy
SphereProxy()
Definition: agxRender/RenderProxy.h:281
agxRender::WireRenderProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:962
agxRender::RenderProxy::getRenderMode
RenderMode getRenderMode() const
Definition: agxRender/RenderProxy.h:1047
agxOSG::setAlpha
AGXOSG_EXPORT void setAlpha(osg::Node *node, float alpha)
Set the alpha part of the material for a node.
agxRender::RenderProxy
Abstract base class which encapsulated information for rendering a specific shape.
Definition: agxRender/RenderProxy.h:76
agxData::Buffer
Abstract representation of a data buffer.
Definition: Buffer.h:55
agxRender::RenderProxy::getAlpha
virtual float getAlpha() const
Definition: agxRender/RenderProxy.h:1001
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
agxRender::TruncatedConeProxy::m_bottomRadius
float m_bottomRadius
Definition: agxRender/RenderProxy.h:503
agxRender::LineProxy::LineProxy
LineProxy()
Definition: agxRender/RenderProxy.h:309
agxRender::HollowTruncatedConeProxy::getTopRadius
float getTopRadius() const
Definition: agxRender/RenderProxy.h:527
agxRender::WireRenderProxy::SegmentDefContainer
agx::VectorPOD< SegmentDef > SegmentDefContainer
Definition: agxRender/RenderProxy.h:907
agxRender::RenderProxy::setModifiedCount
void setModifiedCount(agx::UInt32 c)
Definition: agxRender/RenderProxy.h:1005
agxRender::WireRenderProxy::SphereDef
Definition: agxRender/RenderProxy.h:896
agxRender::HollowTruncatedConeProxy
Subclass that implements a HollowTruncatedConeProxy.
Definition: agxRender/RenderProxy.h:508
agxRender::TruncatedConeProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:504
agxRender::TrimeshProxy::~TrimeshProxy
virtual ~TrimeshProxy()
Definition: agxRender/RenderProxy.h:752
agxRender::CylinderProxy::m_height
float m_height
Definition: agxRender/RenderProxy.h:370
agxRender::HollowCylinderProxy::getThickness
float getThickness() const
Definition: agxRender/RenderProxy.h:404
agxRender::RigidBodyBatchRenderProxy::Container
agx::Vector< const agx::RigidBody * > Container
Definition: agxRender/RenderProxy.h:849
agxRender::RenderProxy::getTransform
const agx::AffineMatrix4x4 & getTransform() const
Definition: agxRender/RenderProxy.h:978
agxRender::ContactsProxy::ContactsProxy
ContactsProxy()
Definition: agxRender/RenderProxy.h:836
agxRender::TextProxy::getPosition
agx::Vec3 getPosition() const
Definition: agxRender/RenderProxy.h:234
agxRender::ContactsProxy::m_contacts
const agxCollide::GeometryContactPtrVector * m_contacts
Definition: agxRender/RenderProxy.h:839
agxRender::TextProxy::m_text
agx::String m_text
Definition: agxRender/RenderProxy.h:240
agxRender::WireShapeProxy::m_previousEndPoint0
agx::Vec3 m_previousEndPoint0
Definition: agxRender/RenderProxy.h:665
agxRender::ContactsProxy::~ContactsProxy
virtual ~ContactsProxy()
Definition: agxRender/RenderProxy.h:838
agxRender::TextProxy::getText
agx::String getText() const
Definition: agxRender/RenderProxy.h:231
agxRender::HollowTruncatedConeProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:537
agxRender::HollowCylinderProxy::getRadius
float getRadius() const
Definition: agxRender/RenderProxy.h:394
agxRender::WireRenderProxy::SegmentDef::endPoint
agx::Vec3 endPoint
Definition: agxRender/RenderProxy.h:892
agxRender::WireShapeProxy::set
void set(float radius, float height, const agx::Vec3 &previousEndPoint0, const agx::Vec3 &previousEndPoint1)
Definition: agxRender/RenderProxy.h:619
agxRender::HollowTruncatedConeProxy::m_bottomRadius
float m_bottomRadius
Definition: agxRender/RenderProxy.h:555
agxRender::RenderProxy::TRANSFORM
@ TRANSFORM
The transformation for a proxy is updated.
Definition: agxRender/RenderProxy.h:83
agxRender::SphereProxy
Subclass that implements a SphereProxy.
Definition: agxRender/RenderProxy.h:277
agx::Line
LineT< Vec3 > Line
Definition: Line.h:39
agxRender::CylinderProxy
Subclass that implements a CylinderProxy.
Definition: agxRender/RenderProxy.h:337
agxRender::RigidBodyBatchRenderProxy::RigidBodyBatchRenderProxy
RigidBodyBatchRenderProxy()
Definition: agxRender/RenderProxy.h:852
agxRender::TruncatedConeProxy::TruncatedConeProxy
TruncatedConeProxy()
Definition: agxRender/RenderProxy.h:466
agxRender::WireShapeProxy::WireShapeProxy
WireShapeProxy()
Definition: agxRender/RenderProxy.h:607
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:113
agxRender::PlaneProxy::m_normal
agx::Vec3 m_normal
Definition: agxRender/RenderProxy.h:273
agxRender::HollowTruncatedConeProxy::HollowTruncatedConeProxy
HollowTruncatedConeProxy()
Definition: agxRender/RenderProxy.h:512
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxRender::HeightFieldProxy::setHeights
void setHeights(const agx::Vec2iVector &modifiedIndices, const agx::RealVector &heights)
Set specified heights of a Heightfield.
Definition: agxRender/RenderProxy.h:1051
agx::UInt
uint32_t UInt
Definition: Integer.h:34
agxRender::RenderProxy::m_shape
agx::observer_ptr< agxCollide::Shape > m_shape
Definition: agxRender/RenderProxy.h:205
agxRender::RigidBodyBatchRenderProxy::~RigidBodyBatchRenderProxy
virtual ~RigidBodyBatchRenderProxy()
Definition: agxRender/RenderProxy.h:871
agxRender::BoxProxy::getHalfExtents
agx::Vec3 getHalfExtents() const
Definition: agxRender/RenderProxy.h:686
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition: ContactForceFilterParticipant.h:22
agxRender::PRIMITIVE_SPHERE
@ PRIMITIVE_SPHERE
Definition: agxRender/RenderProxy.h:58
agx::Bool
bool Bool
Definition: Integer.h:48
agxRender::TruncatedConeProxy::m_topRadius
float m_topRadius
Definition: agxRender/RenderProxy.h:502
agxRender::PRIMITIVE_CAPSULE
@ PRIMITIVE_CAPSULE
Definition: agxRender/RenderProxy.h:53
agxRender::TruncatedConeProxy::getBottomRadius
float getBottomRadius() const
Definition: agxRender/RenderProxy.h:485
agxRender::ConeProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:457
agxRender::HollowTruncatedConeProxy::~HollowTruncatedConeProxy
virtual ~HollowTruncatedConeProxy()
Definition: agxRender/RenderProxy.h:553
agxRender::WireShapeProxy::getPreviousEndPoint1
agx::Vec3 getPreviousEndPoint1() const
Definition: agxRender/RenderProxy.h:651
agxCollide::Cone
A right circular cone shape for geometric intersection tests.
Definition: Cone.h:48
agxRender::PRIMITIVE_LINE
@ PRIMITIVE_LINE
Definition: agxRender/RenderProxy.h:56
agxRender::RenderProxy::getColor
virtual agx::Vec3 getColor() const
Definition: agxRender/RenderProxy.h:989
agxRender::LineProxy::set
void set(const agx::Vec3 &p1, const agx::Vec3 &p2)
Definition: agxRender/RenderProxy.h:312
agxRender::PRIMITIVE_TRIMESH
@ PRIMITIVE_TRIMESH
Definition: agxRender/RenderProxy.h:59
agxRender::PRIMITIVE_HEIGHT_FIELD
@ PRIMITIVE_HEIGHT_FIELD
Definition: agxRender/RenderProxy.h:60
agxRender::ContactsProxy::set
void set(const agxCollide::GeometryContactPtrVector &contacts, float scale)
Definition: agxRender/RenderProxy.h:826
agxRender::CylinderProxy::getRadius
float getRadius() const
Definition: agxRender/RenderProxy.h:353
agxRender::RigidBodyBatchRenderProxy::m_bodies
agxRender::RigidBodyBatchRenderProxy::Container m_bodies
Definition: agxRender/RenderProxy.h:874
agxRender::WireRenderProxy
Definition: agxRender/RenderProxy.h:878
agxRender::RigidBodyBatchRenderProxy::m_scale
float m_scale
Definition: agxRender/RenderProxy.h:875
agxRender::PRIMITIVE_TEXT
@ PRIMITIVE_TEXT
Definition: agxRender/RenderProxy.h:63
agxRender::WireShapeProxy::set
void set(float radius, float height)
Definition: agxRender/RenderProxy.h:613
agxRender::PRIMITIVE_PLANE
@ PRIMITIVE_PLANE
Definition: agxRender/RenderProxy.h:57
agx::AgXString< std::string >
agxRender::SphereProxy::getRadius
float getRadius() const
Definition: agxRender/RenderProxy.h:289
agxRender::RenderProxy::getGeometry
const agxCollide::Geometry * getGeometry() const
Definition: agxRender/RenderProxy.h:1024
agxRender::SphereProxy::set
void set(float radius)
Definition: agxRender/RenderProxy.h:284
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
agxRender::WireShapeProxy::m_previousEndPoint1
agx::Vec3 m_previousEndPoint1
Definition: agxRender/RenderProxy.h:666
agxRender::PrimitiveType
PrimitiveType
Definition: agxRender/RenderProxy.h:51
agxRender::BoxProxy::BoxProxy
BoxProxy()
Definition: agxRender/RenderProxy.h:677
agxRender::RenderProxy::isEnabled
bool isEnabled() const
Definition: agxRender/RenderProxy.h:165
agxRender::WireRenderProxy::SegmentDef::radius
float radius
Definition: agxRender/RenderProxy.h:893
agxRender::WireRenderProxy::SegmentDef::getTransform
agx::AffineMatrix4x4 getTransform() const
Definition: agxRender/RenderProxy.h:1061
agx::Vec3T< Real >
agxRender::WireShapeProxy
Subclass that implements a WireShapeProxy.
Definition: agxRender/RenderProxy.h:603
agxCollide::Trimesh
Triangle mesh for geometric intersection tests.
Definition: Trimesh.h:42
agxRender::PRIMITIVE_BOX
@ PRIMITIVE_BOX
Definition: agxRender/RenderProxy.h:52
agxRender::RenderProxy::setShape
void setShape(agxCollide::Shape *shape, const agxCollide::Geometry *geometry)
Set the shape for this proxy.
Definition: agxRender/RenderProxy.h:1013
agxRender::RenderProxy::setColor
virtual void setColor(const agx::Vec3 &color)
Set the color of this proxy.
Definition: agxRender/RenderProxy.h:982
DynamicsSystem.h
agxRender::LineProxy
Subclass that implements a LineProxy.
Definition: agxRender/RenderProxy.h:305
agx::Vec3f
Vec3T< Real32 > Vec3f
Definition: Vec3.h:39
agx::Int32
int32_t Int32
Definition: Integer.h:45
agx::UInt32
uint32_t UInt32
Definition: Integer.h:40
agxRender::HollowCylinderProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:416
agxRender::CapsuleProxy::~CapsuleProxy
virtual ~CapsuleProxy()
Definition: agxRender/RenderProxy.h:596
agxRender::RenderProxy::setAlpha
virtual void setAlpha(float alpha)
Set the alpha value of this proxy.
Definition: agxRender/RenderProxy.h:993
agxRender::SphereProxy::m_radius
float m_radius
Definition: agxRender/RenderProxy.h:301
agxRender::CylinderProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:358
agxRender::ConeProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:445
agxRender::HollowTruncatedConeProxy::getThickness
float getThickness() const
Definition: agxRender/RenderProxy.h:542
agxRender::WireRenderProxy::SegmentDef::operator->
const SegmentDef * operator->() const
Definition: agxRender/RenderProxy.h:886
agxRender::ContactsProxy::getContacts
const agxCollide::GeometryContactPtrVector & getContacts() const
Definition: agxRender/RenderProxy.h:833
agxRender::LineProxy::~LineProxy
virtual ~LineProxy()
Definition: agxRender/RenderProxy.h:331
agx::Plane
PlaneT< agx::Real > Plane
Definition: Plane.h:121
agxRender::HeightFieldProxy::set
virtual void set(const agx::Vec2iVector &modifiedIndices, const agx::RealVector &heights)=0
Override this method to support changing a selection of indices in the heightfield.
agxRender::TrimeshProxy
Subclass that implements a TrimeshProxy.
Definition: agxRender/RenderProxy.h:739
agxRender::WireRenderProxy::SphereDefContainer
agx::VectorPOD< SphereDef > SphereDefContainer
Definition: agxRender/RenderProxy.h:908
agxRender::WireShapeProxy::getHeight
float getHeight() const
Definition: agxRender/RenderProxy.h:639
agxRender::WireRenderProxy::SphereDef::point
agx::Vec3 point
Definition: agxRender/RenderProxy.h:904
agxRender::ContactsProxy
Class holding contacts that makes it possible to batch render these objects.
Definition: agxRender/RenderProxy.h:821
agxRender::TruncatedConeProxy::set
void set(float topRadius, float bottomRadius, float height)
Definition: agxRender/RenderProxy.h:470
agxRender::PRIMITIVE_CYLINDER
@ PRIMITIVE_CYLINDER
Definition: agxRender/RenderProxy.h:54