AGX Dynamics  2.37.2.0
agxOSG Namespace Reference

The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph. More...

Classes

class  BoxProxy
 Implementation of osg-based BoxProxy. More...
 
class  CableDamageDataRenderer
 
class  CableDamageRenderer
 Class that creates OSG rendering nodes for each segment of a cable and colors them with a color gradient based on the current total damage estimate for the segment. More...
 
struct  CameraData
 
class  CameraManipulatorFactory
 
class  CameraSynchronization
 
class  CapsuleProxy
 Implementation of osg-based CapsuleProxy. More...
 
class  ClipPlane
 This class wraps the ClipPlane functionality of osg together with a clip node and a clip plane. More...
 
class  ConeProxy
 Implementation of osg-based ConeProxy. More...
 
class  ContactProxy
 Implementation of batch rendering of contact points. More...
 
class  ContainerShapeBatchRenderer
 Class that handles batch rendering of objects in forward iterator compliant container. More...
 
class  CylinderGeometryShader
 
class  CylinderProxy
 Implementation of osg-based CylinderProxy. More...
 
class  DeformableHeightFieldRenderer
 An osg-renderer for a deformable height field. More...
 
class  DeformableMeshUpdater
 Updates a renderable representation of a deformable triangle mesh. More...
 
class  EmbeddedGLWindow
 This class is for embedding an OSG based window inside another OpenGL contex, for example in QT. More...
 
class  ExampleApplication
 Class that encapsulates rendering and simulation using OpenSceneGraph. More...
 
class  ExampleApplicationListener
 
class  ExternalProcess
 Cross-platform utility class for wrapping and launching external processes. More...
 
class  FilterContactByName
 Filter that only accepts contacts where at least on of the bodes in the contact has a particular name. More...
 
class  ForceArrowRenderer
 Creates an arrow visualizing force, either contact force (for added bodies), or motor force for added Constraint1DOF (Hinge,Prismatic,..) More...
 
class  FrameTrajectoryDrawable
 
class  GatherAvgPressure
 
class  GatherMaxPressure
 
class  GeometryNode
 A node that can be associated with a collision geometry so that the transformation of this node is updated from the transformation of the Geometry. More...
 
class  GranularMergedBodyDrawable
 
class  GranularMergedBodyDrawableSprites
 
class  GraphRenderer
 
class  GuiEventAdapter
 Class for inserting mouse and keyboard event from OSG into agxSDK::Simulation. More...
 
class  GuiEventListener
 Derive from this class to implement a listener for simulation GuiEvents. More...
 
class  HeightField
 Rendering class for the agxCollide::HeightField The visual representation will be updated if the HeightField is modified. More...
 
class  HeightFieldProxy
 Implementation of osg-based HeightfieldProxy. More...
 
class  HollowCylinderProxy
 Implementation of osg-based HollowCylinderProxy. More...
 
class  HollowTruncatedConeProxy
 Implementation of osg-based HollowTruncatedConeProxy. More...
 
class  HudTextManager
 HudTextManager is a class that inherits from agxSDK::StepEventListener and makes it easier to manipulate text in an agxOSG::SceneDecorator. More...
 
class  ImageCapture
 
class  ImageCaptureBase
 
class  LightSource
 
class  LightsSynchronization
 
class  LineProxy
 Implementation of osg-based LineProxy. More...
 
class  MeshExtractor
 Store Vertices and indices as a vector in this class instance. More...
 
class  MeshExtractorReference
 Store vertices and indices in vectors by reference. More...
 
class  NoTiltTrackballManipulator
 
class  OSGData
 Class for handling methods related to OSG such as setColor, setTransform etc. More...
 
class  OsgTextureAtlasBuilder
 
class  Panel
 
class  ParticleContactGraphDrawable
 
class  ParticleSystemDrawable
 
class  ParticleTrajectoriesDrawable
 
class  PickHandler
 
class  PlaneProxy
 Implementation of osg-based PlaneProxy. More...
 
class  PlotsystemConstructor
 
class  PointSpriteDrawable
 
class  PressureAtlas
 A pressure map for a single trimesh. More...
 
class  PressureAtlasManager
 
class  PressureFieldRenderer
 
class  PressureFromContacts
 Generates pressure on a mesh from contacts. More...
 
class  PressureGenerator
 Base class for types that want to supply force updates to a PressureAtlas. More...
 
class  PressureRenderer
 An utility class for handling of pressure rendering and legend. More...
 
class  PressureToColorConverter
 
class  PressureToRgbaConverter
 
class  RenderProxyFactory
 Implementation of the abstract class from the agxRender namespace, this class is responsible for creating RenderProxy of various types and render them as efficiently as possible in OpenSceneGraph. More...
 
class  RenderStateManager
 
class  RenderTarget
 Render target is used for rendering camera content to a buffer, either a DEPTH or COLOR target. More...
 
class  RenderTaskDrawable
 
class  RenderToImage
 This class will transfer the camera buffer to the CPU for local storage/processing. More...
 
class  RenderToTexture
 
class  RigidBodyBatchRenderProxy
 Implementation of batch rendering of rigid body center of mass position. More...
 
class  RigidBodyRenderCache
 RigidBodyRenderCache is used to cache generated visuals and lookup mappings of RigidBodies cloned from Templates in agx::RigidBodyEmitter and other related granular applications. More...
 
class  RigidBodySystemDrawable
 
class  RigidBodyTrajectoryDrawable
 
class  RockGenerator
 
class  ScalarColorMap
 Class that represents a linear scalar color map that converts a scalar interval to a specified color range. More...
 
class  SCCameraManipulator
 SCCameraManipulator is base class for camera control based on focal center, distance from the center, and orientation of distance vector to the eye. More...
 
class  SceneDecorator
 Decorates a scene with a specific AGX Rendering Style. More...
 
struct  SceneDescription
 A pod-struct for holding information about scenes to load by the application. More...
 
class  ShapeBatchRenderer
 Base class for batch rendering of any shape or shape composite. More...
 
class  SimpleDepthBufferLidar
 
class  SimulationDrawable
 
class  SimulationPausedPrinter
 SimulationPausedPrinter is a class that inherits from agxSDK::GuiEventListener and prints the simulation time to the hud. More...
 
class  SimulationSerializer
 class for serializing a simulation into a series for files on disk 0001_filename etc. More...
 
class  SimulationTimePrinter
 SimulationTimePrinter is a class that inherits from agxSDK::GuiEventListener and prints the simulation time to the hud. More...
 
class  SkyBox
 Sky box. More...
 
class  SoilParticleSystemDrawable
 Internal drawable class for drawing the Voxel grid structure. More...
 
class  SphereProxy
 Implementation of osg-based SphereProxy. More...
 
class  SplineRenderer
 Class for rendering a spline model. More...
 
class  SplineRendererOld
 
class  SplineShader
 Class to encapsulate reading shader files and setting up rendering of a Spline. More...
 
class  StatisticsRenderer
 
class  TerrainGridRenderer
 
class  TerrainHeightColorRenderer
 
class  TerrainRenderer
 
class  TerrainVoxelRenderer
 Rendering class for the agxTerrain::Terrain. More...
 
class  Text
 
class  TextGeometry
 Class for drawing simple/fast 2D text onto screen. More...
 
class  TextProxy
 Implementation of osg-based TextProxy. More...
 
class  Texture2D
 
class  TextureAtlasBuilder
 
class  Transform
 
class  Tree
 
class  TreeRenderer
 
class  TriangleExtractOperatorBase
 This class is a base class that implements a functor, with a method triangle that is executed for each triangle visited. More...
 
class  TriangleExtractor
 This class traverses a subgraph, accumulates transformations and execute a functor (TriangleExtractOperator per triangle. More...
 
class  TrimeshProxy
 Implementation of osg-based TrimeshProxy. More...
 
class  TruncatedConeProxy
 Implementation of osg-based TruncatedConeProxy. More...
 
class  VideoFFMPEGPipeCapture
 
class  WireRenderer
 
class  WireRendererOld
 
class  WireRenderProxy
 
class  WireShapeProxy
 Implementation of osg-based WireShapeProxy. More...
 

Typedefs

typedef osg::Group *(* BuildScenePtr) (agxSDK::Simulation *simulation, ExampleApplication *application)
 
typedef agx::observer_ptr< const CableDamageDataRenderer > CableDamageDataRendererConstObserver
 
typedef agx::ref_ptr< const CableDamageDataRenderer > CableDamageDataRendererConstRef
 
typedef agx::observer_ptr< CableDamageDataRenderer > CableDamageDataRendererObserver
 
typedef agx::ref_ptr< CableDamageDataRenderer > CableDamageDataRendererRef
 
typedef agx::observer_ptr< const CableDamageRenderer > CableDamageRendererConstObserver
 
typedef agx::ref_ptr< const CableDamageRenderer > CableDamageRendererConstRef
 
typedef agx::observer_ptr< CableDamageRenderer > CableDamageRendererObserver
 
typedef agx::ref_ptr< CableDamageRenderer > CableDamageRendererRef
 
typedef osgGA::MatrixManipulator CameraManipulatorType
 
typedef agx::observer_ptr< const ClipPlane > ClipPlaneConstObserver
 
typedef agx::ref_ptr< const ClipPlane > ClipPlaneConstRef
 
typedef agx::observer_ptr< ClipPlane > ClipPlaneObserver
 
typedef agx::Vector< ClipPlaneObserver > ClipPlaneObserverVector
 
typedef agx::VectorPOD< ClipPlane * > ClipPlanePtrVector
 
typedef agx::ref_ptr< ClipPlane > ClipPlaneRef
 
typedef agx::Vector< ClipPlaneRef > ClipPlaneRefVector
 
typedef osg::ref_ptr< CylinderGeometryShader > CylinderGeometryShaderRef
 
typedef agx::observer_ptr< const ExampleApplication > ExampleApplicationConstObserver
 
typedef agx::ref_ptr< const ExampleApplication > ExampleApplicationConstRef
 
typedef agx::observer_ptr< const ExampleApplicationListener > ExampleApplicationListenerConstObserver
 
typedef agx::ref_ptr< const ExampleApplicationListener > ExampleApplicationListenerConstRef
 
typedef agx::observer_ptr< ExampleApplicationListener > ExampleApplicationListenerObserver
 
typedef agx::ref_ptr< ExampleApplicationListener > ExampleApplicationListenerRef
 
typedef agx::observer_ptr< ExampleApplication > ExampleApplicationObserver
 
typedef agx::ref_ptr< ExampleApplication > ExampleApplicationRef
 
typedef agx::observer_ptr< const ExternalProcess > ExternalProcessConstObserver
 
typedef agx::ref_ptr< const ExternalProcess > ExternalProcessConstRef
 
typedef agx::observer_ptr< ExternalProcess > ExternalProcessObserver
 
typedef agx::ref_ptr< ExternalProcess > ExternalProcessRef
 
typedef agx::observer_ptr< const FrameTrajectoryDrawable > FrameTrajectoryDrawableConstObserver
 
typedef agx::ref_ptr< const FrameTrajectoryDrawable > FrameTrajectoryDrawableConstRef
 
typedef agx::observer_ptr< FrameTrajectoryDrawable > FrameTrajectoryDrawableObserver
 
typedef agx::ref_ptr< FrameTrajectoryDrawable > FrameTrajectoryDrawableRef
 
typedef agx::observer_ptr< const GatherAvgPressure > GatherAvgPressureConstObserver
 
typedef agx::ref_ptr< const GatherAvgPressure > GatherAvgPressureConstRef
 
typedef agx::observer_ptr< GatherAvgPressure > GatherAvgPressureObserver
 
typedef agx::ref_ptr< GatherAvgPressure > GatherAvgPressureRef
 
typedef agx::observer_ptr< const GatherMaxPressure > GatherMaxPressureConstObserver
 
typedef agx::ref_ptr< const GatherMaxPressure > GatherMaxPressureConstRef
 
typedef agx::observer_ptr< GatherMaxPressure > GatherMaxPressureObserver
 
typedef agx::ref_ptr< GatherMaxPressure > GatherMaxPressureRef
 
typedef agx::observer_ptr< const GranularMergedBodyDrawable > GranularMergedBodyDrawableConstObserver
 
typedef agx::ref_ptr< const GranularMergedBodyDrawable > GranularMergedBodyDrawableConstRef
 
typedef agx::observer_ptr< GranularMergedBodyDrawable > GranularMergedBodyDrawableObserver
 
typedef agx::ref_ptr< GranularMergedBodyDrawable > GranularMergedBodyDrawableRef
 
typedef agx::observer_ptr< const GranularMergedBodyDrawableSprites > GranularMergedBodyDrawableSpritesConstObserver
 
typedef agx::ref_ptr< const GranularMergedBodyDrawableSprites > GranularMergedBodyDrawableSpritesConstRef
 
typedef agx::observer_ptr< GranularMergedBodyDrawableSprites > GranularMergedBodyDrawableSpritesObserver
 
typedef agx::ref_ptr< GranularMergedBodyDrawableSprites > GranularMergedBodyDrawableSpritesRef
 
typedef agx::observer_ptr< const GraphRenderer > GraphRendererConstObserver
 
typedef agx::ref_ptr< const GraphRenderer > GraphRendererConstRef
 
typedef agx::observer_ptr< GraphRenderer > GraphRendererObserver
 
typedef agx::ref_ptr< GraphRenderer > GraphRendererRef
 
typedef agx::ref_ptr< GuiEventListener > GuiEventListenerRef
 
typedef agx::observer_ptr< const HeightField > HeightFieldConstObserver
 
typedef agx::ref_ptr< const HeightField > HeightFieldConstRef
 
typedef agx::observer_ptr< HeightField > HeightFieldObserver
 
typedef agx::ref_ptr< HeightField > HeightFieldRef
 
typedef agx::observer_ptr< const HudTextManager > HudTextManagerConstObserver
 
typedef agx::ref_ptr< const HudTextManager > HudTextManagerConstRef
 
typedef agx::observer_ptr< HudTextManager > HudTextManagerObserver
 
typedef agx::ref_ptr< HudTextManager > HudTextManagerRef
 
typedef agx::observer_ptr< const ImageCaptureBase > ImageCaptureBaseConstObserver
 
typedef agx::ref_ptr< const ImageCaptureBase > ImageCaptureBaseConstRef
 
typedef agx::observer_ptr< ImageCaptureBase > ImageCaptureBaseObserver
 
typedef agx::ref_ptr< ImageCaptureBase > ImageCaptureBaseRef
 
typedef agx::observer_ptr< const ImageCapture > ImageCaptureConstObserver
 
typedef agx::ref_ptr< const ImageCapture > ImageCaptureConstRef
 
typedef agx::observer_ptr< ImageCapture > ImageCaptureObserver
 
typedef agx::ref_ptr< ImageCapture > ImageCaptureRef
 
typedef agx::Vector< PanelRef > PanelContainer
 
typedef osg::ref_ptr< Panel > PanelRef
 
typedef agx::observer_ptr< const PickHandler > PickHandlerConstObserver
 
typedef agx::ref_ptr< const PickHandler > PickHandlerConstRef
 
typedef agx::observer_ptr< PickHandler > PickHandlerObserver
 
typedef agx::ref_ptr< PickHandler > PickHandlerRef
 
typedef osg::ref_ptr< PointSpriteDrawable > PointSpriteDrawableRef
 
typedef agx::observer_ptr< const PressureAtlas > PressureAtlasConstObserver
 
typedef agx::ref_ptr< const PressureAtlas > PressureAtlasConstRef
 
typedef agx::observer_ptr< const PressureAtlasManager > PressureAtlasManagerConstObserver
 
typedef agx::ref_ptr< const PressureAtlasManager > PressureAtlasManagerConstRef
 
typedef agx::observer_ptr< PressureAtlasManager > PressureAtlasManagerObserver
 
typedef agx::ref_ptr< PressureAtlasManager > PressureAtlasManagerRef
 
typedef agx::observer_ptr< PressureAtlas > PressureAtlasObserver
 
typedef agx::ref_ptr< PressureAtlas > PressureAtlasRef
 
typedef agx::observer_ptr< const PressureFieldRenderer > PressureFieldRendererConstObserver
 
typedef agx::ref_ptr< const PressureFieldRenderer > PressureFieldRendererConstRef
 
typedef agx::observer_ptr< PressureFieldRenderer > PressureFieldRendererObserver
 
typedef agx::ref_ptr< PressureFieldRenderer > PressureFieldRendererRef
 
typedef agx::observer_ptr< const PressureFromContacts > PressureFromContactsConstObserver
 
typedef agx::ref_ptr< const PressureFromContacts > PressureFromContactsConstRef
 
typedef agx::observer_ptr< PressureFromContacts > PressureFromContactsObserver
 
typedef agx::ref_ptr< PressureFromContacts > PressureFromContactsRef
 
typedef agx::observer_ptr< const PressureGenerator > PressureGeneratorConstObserver
 
typedef agx::ref_ptr< const PressureGenerator > PressureGeneratorConstRef
 
typedef agx::observer_ptr< PressureGenerator > PressureGeneratorObserver
 
typedef agx::Vector< PressureGeneratorObserver > PressureGeneratorObserverVector
 
typedef agx::VectorPOD< PressureGenerator * > PressureGeneratorPtrVector
 
typedef agx::ref_ptr< PressureGenerator > PressureGeneratorRef
 
typedef agx::Vector< PressureGeneratorRef > PressureGeneratorRefVector
 
typedef agx::observer_ptr< const PressureRenderer > PressureRendererConstObserver
 
typedef agx::ref_ptr< const PressureRenderer > PressureRendererConstRef
 
typedef agx::observer_ptr< PressureRenderer > PressureRendererObserver
 
typedef agx::ref_ptr< PressureRenderer > PressureRendererRef
 
typedef agx::observer_ptr< const PressureToColorConverter > PressureToColorConverterConstObserver
 
typedef agx::ref_ptr< const PressureToColorConverter > PressureToColorConverterConstRef
 
typedef agx::observer_ptr< PressureToColorConverter > PressureToColorConverterObserver
 
typedef agx::Vector< PressureToColorConverterObserver > PressureToColorConverterObserverVector
 
typedef agx::VectorPOD< PressureToColorConverter * > PressureToColorConverterPtrVector
 
typedef agx::ref_ptr< PressureToColorConverter > PressureToColorConverterRef
 
typedef agx::Vector< PressureToColorConverterRef > PressureToColorConverterRefVector
 
typedef agx::observer_ptr< const PressureToRgbaConverter > PressureToRgbaConverterConstObserver
 
typedef agx::ref_ptr< const PressureToRgbaConverter > PressureToRgbaConverterConstRef
 
typedef agx::observer_ptr< PressureToRgbaConverter > PressureToRgbaConverterObserver
 
typedef agx::ref_ptr< PressureToRgbaConverter > PressureToRgbaConverterRef
 
typedef agx::observer_ptr< const RenderProxyFactory > RenderProxyFactoryConstObserver
 
typedef agx::ref_ptr< const RenderProxyFactory > RenderProxyFactoryConstRef
 
typedef agx::observer_ptr< RenderProxyFactory > RenderProxyFactoryObserver
 
typedef agx::ref_ptr< RenderProxyFactory > RenderProxyFactoryRef
 
typedef agx::observer_ptr< const RenderTarget > RenderTargetConstObserver
 
typedef agx::ref_ptr< const RenderTarget > RenderTargetConstRef
 
typedef agx::observer_ptr< RenderTarget > RenderTargetObserver
 
typedef agx::Vector< RenderTargetObserver > RenderTargetObserverVector
 
typedef agx::VectorPOD< RenderTarget * > RenderTargetPtrVector
 
typedef agx::ref_ptr< RenderTarget > RenderTargetRef
 
typedef agx::Vector< RenderTargetRef > RenderTargetRefVector
 
typedef agx::observer_ptr< const RenderToImage > RenderToImageConstObserver
 
typedef agx::ref_ptr< const RenderToImage > RenderToImageConstRef
 
typedef agx::observer_ptr< RenderToImage > RenderToImageObserver
 
typedef agx::Vector< RenderToImageObserver > RenderToImageObserverVector
 
typedef agx::VectorPOD< RenderToImage * > RenderToImagePtrVector
 
typedef agx::ref_ptr< RenderToImage > RenderToImageRef
 
typedef agx::Vector< RenderToImageRef > RenderToImageRefVector
 
typedef agx::observer_ptr< const RenderToTexture > RenderToTextureConstObserver
 
typedef agx::ref_ptr< const RenderToTexture > RenderToTextureConstRef
 
typedef agx::observer_ptr< RenderToTexture > RenderToTextureObserver
 
typedef agx::Vector< RenderToTextureObserver > RenderToTextureObserverVector
 
typedef agx::VectorPOD< RenderToTexture * > RenderToTexturePtrVector
 
typedef agx::ref_ptr< RenderToTexture > RenderToTextureRef
 
typedef agx::Vector< RenderToTextureRef > RenderToTextureRefVector
 
typedef agx::observer_ptr< const RigidBodyRenderCache > RigidBodyRenderCacheConstObserver
 
typedef agx::ref_ptr< const RigidBodyRenderCache > RigidBodyRenderCacheConstRef
 
typedef agx::observer_ptr< RigidBodyRenderCache > RigidBodyRenderCacheObserver
 
typedef agx::ref_ptr< RigidBodyRenderCache > RigidBodyRenderCacheRef
 
typedef agx::observer_ptr< const RigidBodyTrajectoryDrawable > RigidBodyTrajectoryDrawableConstObserver
 
typedef agx::ref_ptr< const RigidBodyTrajectoryDrawable > RigidBodyTrajectoryDrawableConstRef
 
typedef agx::observer_ptr< RigidBodyTrajectoryDrawable > RigidBodyTrajectoryDrawableObserver
 
typedef agx::ref_ptr< RigidBodyTrajectoryDrawable > RigidBodyTrajectoryDrawableRef
 
typedef agx::ref_ptr< RockGenerator > RockGeneratorRef
 
typedef agx::observer_ptr< const ScalarColorMap > ScalarColorMapConstObserver
 
typedef agx::ref_ptr< const ScalarColorMap > ScalarColorMapConstRef
 
typedef agx::observer_ptr< ScalarColorMap > ScalarColorMapObserver
 
typedef agx::ref_ptr< ScalarColorMap > ScalarColorMapRef
 
typedef agx::observer_ptr< const SimpleDepthBufferLidar > SimpleDepthBufferLidarConstObserver
 
typedef agx::ref_ptr< const SimpleDepthBufferLidar > SimpleDepthBufferLidarConstRef
 
typedef agx::observer_ptr< SimpleDepthBufferLidar > SimpleDepthBufferLidarObserver
 
typedef agx::ref_ptr< SimpleDepthBufferLidar > SimpleDepthBufferLidarRef
 
typedef agx::ref_ptr< SimulationSerializer > SimulationSerializerRef
 
typedef agx::ref_ptr< SplineRendererOld > SplineRendererOldRef
 
typedef agx::ref_ptr< SplineRenderer > SplineRendererRef
 
typedef osg::ref_ptr< SplineShader > SplineShaderRef
 
typedef agx::ref_ptr< StatisticsRenderer > StatisticsRendererRef
 
typedef agx::observer_ptr< const TerrainVoxelRenderer > TerrainVoxelRendererConstObserver
 
typedef agx::ref_ptr< const TerrainVoxelRenderer > TerrainVoxelRendererConstRef
 
typedef agx::observer_ptr< TerrainVoxelRenderer > TerrainVoxelRendererObserver
 
typedef agx::ref_ptr< TerrainVoxelRenderer > TerrainVoxelRendererRef
 
typedef agx::ref_ptr< Tree > TreeRef
 
typedef agx::ref_ptr< TreeRenderer > TreeRendererRef
 
typedef osg::TriangleFunctor< TriangleExtractOperatorBase > TriangleExtractOperator
 TriangleExtractOperator is the method inherit to create a operator that will be executed per triangle. More...
 
typedef agx::observer_ptr< const VideoFFMPEGPipeCapture > VideoFFMPEGPipeCaptureConstObserver
 
typedef agx::ref_ptr< const VideoFFMPEGPipeCapture > VideoFFMPEGPipeCaptureConstRef
 
typedef agx::observer_ptr< VideoFFMPEGPipeCapture > VideoFFMPEGPipeCaptureObserver
 
typedef agx::ref_ptr< VideoFFMPEGPipeCapture > VideoFFMPEGPipeCaptureRef
 
typedef agx::ref_ptr< WireRendererOld > WireRendererOldRef
 
typedef agx::ref_ptr< WireRenderer > WireRendererRef
 

Enumerations

enum  TextureMode {
  DIFFUSE_TEXTURE =0, SHADOW_TEXTURE =1, SHADOW_JITTER_TEXTURE =2, NORMALMAP_TEXTURE =3,
  HEIGHTMAP_TEXTURE =4, SPECULARMAP_TEXTURE = 5, SPHEREMAP_TEXTURE = 6
}
 

Functions

AGXOSG_EXPORT void addRenderCallbackToFracture (agxModel::FractureGenerator *listener, osg::Group *root)
 Adds default createVisual callback to a FractureGenerator when new fragments are created that copies RenderData from the fractured geometry shape if it exists. More...
 
AGXOSG_EXPORT void addRenderColorCallbackToFracture (agxModel::FractureGenerator *listener, osg::Group *root, const agx::Vec4f &color)
 Adds createVisual callback to a FractureGenerator when new fragments are created that sets a specific color. More...
 
AGXOSG_EXPORT bool addText (const agxCollide::Geometry *geometry, osg::Group *root, const std::string &text, const agx::Vec3 &relPosition=agx::Vec3(0, 0, 0), const agx::Vec4f &color=agxRender::Color::Yellow(), agx::Real size=0.2)
 Add text relative to an geometry. More...
 
AGXOSG_EXPORT osg::Geometry * create3DGrid (unsigned int resU, unsigned int resV, unsigned int resW, const osg::Vec3 &origin, const osg::Vec3 &endPointX, const osg::Vec3 &endPointY, const osg::Vec3 &endPointZ, float width)
 Create a uniform grid and adds it to a root. More...
 
AGXOSG_EXPORT osg::Geode * create3DGrid (unsigned int resU, unsigned int resV, unsigned int resW, const agx::Vec3 &origin, const agx::Vec3 &endPointX, const agx::Vec3 &endPointY, const agx::Vec3 &endPointZ, float width)
 Create a uniform grid and adds it to a root. More...
 
AGXOSG_EXPORT osg::MatrixTransform * createAxes (agxCollide::Geometry *geometry, agx::Frame *relativeTransform, osg::Group *root, float scale=1, const agx::Vec4f &color=agx::Vec4f())
 Creates osg axes relative a geometry given relative transform. More...
 
AGXOSG_EXPORT osg::MatrixTransform * createAxes (agxCollide::Geometry *geometry, agx::AffineMatrix4x4 relativeTransform, osg::Group *root, float scale=1, const agx::Vec4f &color=agx::Vec4f())
 
AGXOSG_EXPORT osg::MatrixTransform * createAxes (agx::RigidBody *rb, agx::Frame *relativeTransform, osg::Group *root, float scale=1.f, const agx::Vec4f &color=agx::Vec4f())
 Creates osg axes relative a rigid body given relative transform. More...
 
AGXOSG_EXPORT osg::MatrixTransform * createAxes (agx::RigidBody *rb, agx::AffineMatrix4x4 relativeTransform, osg::Group *root, float scale=1.f, const agx::Vec4f &color=agx::Vec4f())
 
AGXOSG_EXPORT osg::MatrixTransform * createAxes (agx::AffineMatrix4x4 relativeTransform, osg::Group *root, float scale=1.f, const agx::Vec4f &color=agx::Vec4f())
 
AGXOSG_EXPORT void createAxes (agx::Constraint *constraint, osg::Group *root, float scale=1.f, const agx::Vec4f &color=agx::Vec4f())
 Create axes at the constraint attachments. More...
 
AGXOSG_EXPORT osg::Geode * createFrameTrajectoryDrawable (agxSDK::Simulation *simulation, osg::Group *root, agx::UInt numPositions, const agx::Vec4f &defaultColor=agx::Vec4f(0.5, 0.5, 0.5, 1.0))
 
AGXOSG_EXPORT osg::Geometry * createGrid (unsigned int resU, unsigned int resV, const osg::Vec3 &origin, const osg::Vec3 &endPointX, const osg::Vec3 &endPointY, bool wireFrameMode=false)
 Create a uniform grid. More...
 
AGXOSG_EXPORT osg::Geode * createGrid (unsigned int resU, unsigned int resV, const agx::Vec3 &origin, const agx::Vec3 &endPointX, const agx::Vec3 &endPointY, osg::Group *root)
 Create a uniform grid and adds it to a root. More...
 
AGXOSG_EXPORT osg::Geode * createLine (const agx::Vec3 &p1, const agx::Vec3 &p2, const agx::Vec4 &color, float width)
 Create and return a new Line to render. More...
 
AGXOSG_EXPORT osg::Geode * createParticleContactGraph (agx::ParticleSystem *particleSystem, osg::Group *root, agx::Real minForce, agx::Real maxForce)
 Creates a visual of the particle contact network, which colors contacts depending on contact force. More...
 
AGXOSG_EXPORT osg::Geode * createParticleTrajectoriesVisual (agx::ParticleSystem *particleSystem, osg::Group *root, agx::Real sampling, agx::UInt numPositions)
 Creates a visual of the particle position trajectories. More...
 
AGXOSG_EXPORT osg::Geode * createPolyline (const agx::Vec3Vector &points, const agx::Vec4 &color, float width)
 Create and return a new Polyine to render. More...
 
AGXOSG_EXPORT osg::Geode * createRigidBodyTrajectoriesVisual (agxSDK::Simulation *simulation, osg::Group *root, agx::Real sampling, agx::UInt numPositions, ScalarColorMap *scalarColorMap=nullptr)
 Creates a visual of the rigid body position trajectories. More...
 
AGXOSG_EXPORT osg::Geode * createSkyBox (agx::Vector< osg::ref_ptr< osg::Image > > &images, float size)
 
AGXOSG_EXPORT osg::Geode * createSkySphere (const std::string &name, agx::Vector< osg::ref_ptr< osg::Image > > &images, float radius)
 
AGXOSG_EXPORT osg::Geode * createText (const std::string &text, const agx::Vec3 &relPosition=agx::Vec3(0, 0, 0), const agx::Vec4f &color=agxRender::Color::Yellow(), agx::Real size=0.2)
 Create a text object. More...
 
AGXOSG_EXPORT osg::Texture2D * createTexture (const std::string &filename)
 Create a Texture2D object that can be assigned to nodes. More...
 
AGXOSG_EXPORT osg::TextureCubeMap * createTextureCubeMap (agx::Vector< osg::ref_ptr< osg::Image > > &images)
 Internal functions for creating texture cube maps. More...
 
AGXOSG_EXPORT osg::TextureCubeMap * createTextureCubeMap (const std::string &imagename, const std::string &filetype)
 
AGXOSG_EXPORT agxCollide::Trimesh * createTrimesh (osg::Node *node)
 Extracts mesh data from an osg::Node, creates an agxCollide::Trimesh from it and returns the result. More...
 
AGXOSG_EXPORT agxOSG::GeometryNode * createVisual (const agxCollide::Geometry *geometry, osg::Group *root, float detailRatio=1.0f, bool createAxes=false, bool evenIfSensor=true)
 Given a geometry, this function create visual representation of the shape. More...
 
AGXOSG_EXPORT osg::Geode * createVisual (agx::ParticleSystem *particleSystem, osg::Group *root, agxOSG::ParticleSystemDrawable::ParticleRenderingMode mode=DEFAULT_PARTICLE_RENDERING_MODE, agxOSG::ParticleSystemDrawable::ParticleShaderMode particleShaderMode=agxOSG::ParticleSystemDrawable::ROTATION_SPRITES)
 Given a particle system, create a visual representation. More...
 
AGXOSG_EXPORT osg::Group * createVisual (agx::RigidBodyEmitter *emitter, osg::Group *root)
 
AGXOSG_EXPORT osg::Group * createVisual (agx::Emitter *emitter, osg::Group *root)
 
AGXOSG_EXPORT osg::MatrixTransform * createVisual (agx::ObserverFrame *frame, osg::Group *root, float scale=1)
 Create a visual representation of an ObserverFrame (axis) More...
 
AGXOSG_EXPORT osg::Group * createVisual (agx::RigidBody *rb, osg::Group *root, float detailRatio=1.0f, bool createAxes=false)
 Given a rigid body, this function creates visual representation of all the geometries. More...
 
AGXOSG_EXPORT osg::Group * createVisual (agxSDK::Assembly *parent, osg::Group *root, float detailRatio=1.0f, bool createAxes=false)
 Given an Assembly, this function creates visual representation of all the geometries. More...
 
AGXOSG_EXPORT osg::Group * createVisual (agxSDK::Simulation *simulation, osg::Group *root, float detailRatio=1.0f, bool createAxes=false)
 Given a simulation, this function creates visual representation of all the contents in the simulation, such as geometries and particle systems. More...
 
AGXOSG_EXPORT osg::Group * createVisualTemplateCaching (agxSDK::Assembly *parent, osg::Group *root, agxOSG::RigidBodyRenderCache *cache=nullptr, float detailRatio=1.0f, bool createAxes=false)
 Given an Assembly, this function creates visual representation of all the geometries. More...
 
AGXOSG_EXPORT agxSDK::EventListener * createVisualUpdater (agxSDK::EventListener *listener, osg::Group *root)
 Given some specific classes inheriting from EventListener, this function can handle custom visual representations and effects. More...
 
AGXOSG_EXPORT std::tuple< osg::Group *, std::vector< size_t > > createVisualWithGeometryConnection (agx::RigidBody *rb, osg::Group *root, float detailRatio=1.0f, bool createAxes=false)
 Given a rigid body, this function creates visual representation of all the geometries. More...
 
AGXOSG_EXPORT agxOSG::FrameTrajectoryDrawable * findFrameTrajectoryDrawable (osg::Group *root)
 
AGXOSG_EXPORT GeometryNode * findGeometryNode (const agxCollide::Geometry *geometry, osg::Group *rootNode)
 Finds the geometry node associated to a geometry. More...
 
AGXOSG_EXPORT agxOSG::ParticleSystemDrawable * findParticleSystemDrawable (osg::Group *root)
 
AGXOSG_EXPORT agxOSG::RigidBodySystemDrawable * findRigidBodySystemDrawable (osg::Group *root)
 
AGXOSG_EXPORT osgText::Text * findText (const agxCollide::Geometry *geometry, osg::Group *root, size_t index=0)
 Finds a text object already added to the geometry (so the text can be changed). More...
 
AGXOSG_EXPORT bool forceWireFrameModeOn (osg::Node *node)
 
AGXOSG_EXPORT void GeometryNode_reference (agxOSG::GeometryNode *node)
 
AGXOSG_EXPORT void GeometryNode_unreference (agxOSG::GeometryNode *node)
 
AGXOSG_EXPORT bool getEnableOutline (osg::Node *node)
 
AGXOSG_EXPORT agxCollide::LocalGeometryContact getHoveredGeometryContact (const osg::Camera *camera, agxCollide::Space *space, float x, float y)
 Get a geometry contact given the current camera and a position in the camera window. More...
 
AGXOSG_EXPORT void getNearFarPoints (const osg::Camera *camera, float x, float y, agx::Vec3 &near, agx::Vec3 &far)
 Get the near and far points of the current window, given a camera and x and y position. More...
 
AGXOSG_EXPORT bool loadCubeMapImages (const std::string &imagename, const std::string &filetype, agx::Vector< osg::ref_ptr< osg::Image > > &images)
 Internal function to load images into an array. More...
 
unsigned int AGXOSG_EXPORT makeRasterFont (void)
 
AGXOSG_EXPORT bool readFile (const std::string &filename, agxSDK::Simulation *simulation, osg::Group *root, agxSDK::Assembly *parent=nullptr, agx::Real detailRatio=0.35, bool createAxis=false, agx::UInt selection=agxSDK::Simulation::READ_DEFAULT, agxOSG::RigidBodyRenderCache *cache=nullptr)
 Utility function for reading various files: More...
 
AGXOSG_EXPORT osg::Node * readNodeFile (const std::string &filename, bool searchForIve=false)
 Read a specified filename from disk and return it as a OpenSceneGraph node. More...
 
AGXOSG_EXPORT osg::Node * readNodeFile (const std::string &filename, const osgDB::ReaderWriter::Options *options, bool searchForIve=false)
 Read a specified filename from disk and return it as a OpenSceneGraph node. More...
 
AGXOSG_EXPORT bool removeText (const agxCollide::Geometry *geometry, osg::Group *root, size_t index=0)
 Remove text from a geometry. More...
 
void AGXOSG_EXPORT renderText (float x, float y, const char *s)
 Render the bitmap text using previously created bitmap fonts. More...
 
AGXOSG_EXPORT void setAlpha (osg::Node *node, float alpha)
 Set the alpha part of the material for a node. More...
 
AGXOSG_EXPORT void setAmbientColor (osg::Node *node, const agx::Vec4f &color)
 Set the ambient part of a material for a node. More...
 
AGXOSG_EXPORT bool setCubeMapTexture (osg::Node *node, const std::string &imagePath, const std::string &imageType=".dds")
 Assigns a Cubemap texture to the specified node. More...
 
AGXOSG_EXPORT void setDiffuseColor (osg::Node *node, const agx::Vec4f &color)
 Set the diffuse part of a material for a node. More...
 
AGXOSG_EXPORT void setDiffuseColor (agx::RigidBody *rb, const agx::Vec4f &color, osg::Group *root)
 Set the diffuse part of a material for a rigid body (all geometries). More...
 
AGXOSG_EXPORT void setDiffuseColor (agxCollide::Geometry *geometry, const agx::Vec4f &color, osg::Group *root)
 Set the diffuse part of a material for a geometry. More...
 
AGXOSG_EXPORT void setEnableLight (bool enable, int lightNum, osg::Node *node)
 
AGXOSG_EXPORT bool setEnableOutline (osg::Node *node, bool enabled, const agxRender::Color &color=agxRender::Color(1, 1, 0, 1), float width=2.0)
 
AGXOSG_EXPORT bool setEnableWireFrameMode (osg::Node *node, bool flag)
 
AGXOSG_EXPORT void setEnvMapReflectionCoefficient (osg::Node *node, float coeff)
 Specifies the amount of reflection that should be used (if CubeMap or SphereMap is assigned to the node). More...
 
AGXOSG_EXPORT bool setOrbitCamera (osgViewer::Viewer *viewer, agxOSG::GeometryNode *node, const agx::Vec3 &eye, const agx::Vec3 &center, const agx::Vec3 &up, int trackerMode)
 
AGXOSG_EXPORT void setShininess (osg::Node *node, float shininess)
 Set the shininess exponent for the Phong specular model. More...
 
AGXOSG_EXPORT void setSpecularColor (osg::Node *node, const agx::Vec4f &color)
 Set the specular part of a material for a node. More...
 
AGXOSG_EXPORT bool setTexture (const agxCollide::Geometry *geometry, osg::Group *rootNode, const std::string &imagePath, bool repeat=false, TextureMode mode=DIFFUSE_TEXTURE)
 Read an image from disk and apply to the specified geometry as a 2D Texture in OVERRIDE|PROTECTED mode. More...
 
AGXOSG_EXPORT bool setTexture (const agx::RigidBody *rigidBody, osg::Group *rootNode, const std::string &imagePath, bool repeat=false, TextureMode mode=DIFFUSE_TEXTURE)
 For all geometries in the rigid body, this function will set a 2D texture in OVERRIDE|PROTECTED mode. More...
 
AGXOSG_EXPORT bool setTexture (osg::Node *node, const std::string &imagePath, bool repeat=false, TextureMode mode=DIFFUSE_TEXTURE, float scaleU=1.0f, float scaleV=1.0f)
 Read an image from disk and apply to the specified node as a 2D Texture in OVERRIDE|PROTECTED mode. More...
 
AGXOSG_EXPORT bool setTexture (osg::Node *node, osg::Texture2D *texture, bool repeat=false, TextureMode mode=DIFFUSE_TEXTURE, float scaleU=1.0f, float scaleV=1.0f)
 Apply a 2D Texture to the specified node in OVERRIDE|PROTECTED mode. More...
 
AGXOSG_EXPORT bool setTexture (osg::Node *node, agxOSG::Texture2D *texture, bool repeat=false, TextureMode mode=DIFFUSE_TEXTURE, float scaleU=1.0f, float scaleV=1.0f)
 Apply a 2D Texture to the specified node in OVERRIDE|PROTECTED mode. More...
 
AGXOSG_EXPORT bool setTexture (agxOSG::GeometryNode *node, agxOSG::Texture2D *texture, bool repeat=false, TextureMode mode=DIFFUSE_TEXTURE, float scaleU=1.0f, float scaleV=1.0f)
 Apply a 2D Texture to the specified node in OVERRIDE|PROTECTED mode. More...
 
template<typename T >
void setUniform (osg::Node *node, const std::string &name, T value)
 
AGXOSG_EXPORT void Text_reference (agxOSG::Text *node)
 
AGXOSG_EXPORT void Text_unreference (agxOSG::Text *node)
 
AGXOSG_EXPORT bool toggleWireFrameMode (osg::Node *node)
 
AGXOSG_EXPORT void Transform_reference (agxOSG::Transform *node)
 
AGXOSG_EXPORT void Transform_unreference (agxOSG::Transform *node)
 

Variables

const char * defaultFontName
 

Detailed Description

The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.

Namespace holding utility classes and functions for connecting AGX to the OpenSceneGraph rendering API.

Contains classes/utility functions for connecting AGX to OpenSceneGraph.

Typedef Documentation

◆ BuildScenePtr

typedef osg::Group*(* agxOSG::BuildScenePtr) (agxSDK::Simulation *simulation, ExampleApplication *application)

Definition at line 117 of file ExampleApplication.h.

◆ CableDamageDataRendererConstObserver

◆ CableDamageDataRendererConstRef

◆ CableDamageDataRendererObserver

◆ CableDamageDataRendererRef

◆ CableDamageRendererConstObserver

◆ CableDamageRendererConstRef

◆ CableDamageRendererObserver

◆ CableDamageRendererRef

◆ CameraManipulatorType

typedef osgGA::MatrixManipulator agxOSG::CameraManipulatorType

Definition at line 154 of file ExampleApplication.h.

◆ ClipPlaneConstObserver

Definition at line 35 of file ClipPlane.h.

◆ ClipPlaneConstRef

Definition at line 35 of file ClipPlane.h.

◆ ClipPlaneObserver

Definition at line 35 of file ClipPlane.h.

◆ ClipPlaneObserverVector

◆ ClipPlanePtrVector

Definition at line 36 of file ClipPlane.h.

◆ ClipPlaneRef

Definition at line 35 of file ClipPlane.h.

◆ ClipPlaneRefVector

Definition at line 36 of file ClipPlane.h.

◆ CylinderGeometryShaderRef

Definition at line 106 of file CylinderGeometryShader.h.

◆ ExampleApplicationConstObserver

◆ ExampleApplicationConstRef

◆ ExampleApplicationListenerConstObserver

◆ ExampleApplicationListenerConstRef

◆ ExampleApplicationListenerObserver

◆ ExampleApplicationListenerRef

◆ ExampleApplicationObserver

◆ ExampleApplicationRef

◆ ExternalProcessConstObserver

◆ ExternalProcessConstRef

◆ ExternalProcessObserver

◆ ExternalProcessRef

◆ FrameTrajectoryDrawableConstObserver

◆ FrameTrajectoryDrawableConstRef

◆ FrameTrajectoryDrawableObserver

◆ FrameTrajectoryDrawableRef

◆ GatherAvgPressureConstObserver

◆ GatherAvgPressureConstRef

◆ GatherAvgPressureObserver

◆ GatherAvgPressureRef

◆ GatherMaxPressureConstObserver

◆ GatherMaxPressureConstRef

◆ GatherMaxPressureObserver

◆ GatherMaxPressureRef

◆ GranularMergedBodyDrawableConstObserver

◆ GranularMergedBodyDrawableConstRef

◆ GranularMergedBodyDrawableObserver

◆ GranularMergedBodyDrawableRef

◆ GranularMergedBodyDrawableSpritesConstObserver

◆ GranularMergedBodyDrawableSpritesConstRef

◆ GranularMergedBodyDrawableSpritesObserver

◆ GranularMergedBodyDrawableSpritesRef

◆ GraphRendererConstObserver

◆ GraphRendererConstRef

Definition at line 35 of file GraphRenderer.h.

◆ GraphRendererObserver

◆ GraphRendererRef

Definition at line 35 of file GraphRenderer.h.

◆ GuiEventListenerRef

◆ HeightFieldConstObserver

◆ HeightFieldConstRef

Definition at line 33 of file agxOSG/HeightField.h.

◆ HeightFieldObserver

◆ HeightFieldRef

Definition at line 33 of file agxOSG/HeightField.h.

◆ HudTextManagerConstObserver

◆ HudTextManagerConstRef

Definition at line 30 of file HudTextManager.h.

◆ HudTextManagerObserver

◆ HudTextManagerRef

◆ ImageCaptureBaseConstObserver

◆ ImageCaptureBaseConstRef

Definition at line 40 of file ImageCapture.h.

◆ ImageCaptureBaseObserver

◆ ImageCaptureBaseRef

◆ ImageCaptureConstObserver

◆ ImageCaptureConstRef

Definition at line 128 of file ImageCapture.h.

◆ ImageCaptureObserver

◆ ImageCaptureRef

Definition at line 128 of file ImageCapture.h.

◆ PanelContainer

Definition at line 69 of file agxOSG/PickHandler.h.

◆ PanelRef

typedef osg::ref_ptr< Panel > agxOSG::PanelRef

Definition at line 67 of file agxOSG/PickHandler.h.

◆ PickHandlerConstObserver

◆ PickHandlerConstRef

Definition at line 74 of file agxOSG/PickHandler.h.

◆ PickHandlerObserver

◆ PickHandlerRef

Definition at line 74 of file agxOSG/PickHandler.h.

◆ PointSpriteDrawableRef

Definition at line 86 of file PointSpriteDrawable.h.

◆ PressureAtlasConstObserver

◆ PressureAtlasConstRef

Definition at line 35 of file PressureAtlas.h.

◆ PressureAtlasManagerConstObserver

◆ PressureAtlasManagerConstRef

◆ PressureAtlasManagerObserver

◆ PressureAtlasManagerRef

◆ PressureAtlasObserver

◆ PressureAtlasRef

Definition at line 35 of file PressureAtlas.h.

◆ PressureFieldRendererConstObserver

◆ PressureFieldRendererConstRef

◆ PressureFieldRendererObserver

◆ PressureFieldRendererRef

◆ PressureFromContactsConstObserver

◆ PressureFromContactsConstRef

◆ PressureFromContactsObserver

◆ PressureFromContactsRef

◆ PressureGeneratorConstObserver

◆ PressureGeneratorConstRef

◆ PressureGeneratorObserver

◆ PressureGeneratorObserverVector

◆ PressureGeneratorPtrVector

◆ PressureGeneratorRef

◆ PressureGeneratorRefVector

◆ PressureRendererConstObserver

◆ PressureRendererConstRef

◆ PressureRendererObserver

◆ PressureRendererRef

◆ PressureToColorConverterConstObserver

◆ PressureToColorConverterConstRef

◆ PressureToColorConverterObserver

◆ PressureToColorConverterObserverVector

◆ PressureToColorConverterPtrVector

◆ PressureToColorConverterRef

◆ PressureToColorConverterRefVector

◆ PressureToRgbaConverterConstObserver

◆ PressureToRgbaConverterConstRef

◆ PressureToRgbaConverterObserver

◆ PressureToRgbaConverterRef

◆ RenderProxyFactoryConstObserver

◆ RenderProxyFactoryConstRef

◆ RenderProxyFactoryObserver

◆ RenderProxyFactoryRef

◆ RenderTargetConstObserver

◆ RenderTargetConstRef

Definition at line 34 of file RenderTarget.h.

◆ RenderTargetObserver

◆ RenderTargetObserverVector

◆ RenderTargetPtrVector

◆ RenderTargetRef

Definition at line 34 of file RenderTarget.h.

◆ RenderTargetRefVector

◆ RenderToImageConstObserver

◆ RenderToImageConstRef

Definition at line 28 of file RenderToImage.h.

◆ RenderToImageObserver

◆ RenderToImageObserverVector

◆ RenderToImagePtrVector

◆ RenderToImageRef

Definition at line 28 of file RenderToImage.h.

◆ RenderToImageRefVector

◆ RenderToTextureConstObserver

◆ RenderToTextureConstRef

◆ RenderToTextureObserver

◆ RenderToTextureObserverVector

◆ RenderToTexturePtrVector

◆ RenderToTextureRef

◆ RenderToTextureRefVector

◆ RigidBodyRenderCacheConstObserver

◆ RigidBodyRenderCacheConstRef

◆ RigidBodyRenderCacheObserver

◆ RigidBodyRenderCacheRef

◆ RigidBodyTrajectoryDrawableConstObserver

◆ RigidBodyTrajectoryDrawableConstRef

◆ RigidBodyTrajectoryDrawableObserver

◆ RigidBodyTrajectoryDrawableRef

◆ RockGeneratorRef

◆ ScalarColorMapConstObserver

◆ ScalarColorMapConstRef

Definition at line 31 of file ScalarColorMap.h.

◆ ScalarColorMapObserver

◆ ScalarColorMapRef

◆ SimpleDepthBufferLidarConstObserver

◆ SimpleDepthBufferLidarConstRef

◆ SimpleDepthBufferLidarObserver

◆ SimpleDepthBufferLidarRef

◆ SimulationSerializerRef

◆ SplineRendererOldRef

◆ SplineRendererRef

◆ SplineShaderRef

typedef osg::ref_ptr< SplineShader > agxOSG::SplineShaderRef

Definition at line 123 of file SplineRenderer.h.

◆ StatisticsRendererRef

◆ TerrainVoxelRendererConstObserver

◆ TerrainVoxelRendererConstRef

◆ TerrainVoxelRendererObserver

◆ TerrainVoxelRendererRef

◆ TreeRef

Definition at line 90 of file agxOSG/Tree.h.

◆ TreeRendererRef

Definition at line 54 of file agxOSG/Tree.h.

◆ TriangleExtractOperator

TriangleExtractOperator is the method inherit to create a operator that will be executed per triangle.

Definition at line 138 of file TriangleExtractor.h.

◆ VideoFFMPEGPipeCaptureConstObserver

◆ VideoFFMPEGPipeCaptureConstRef

◆ VideoFFMPEGPipeCaptureObserver

◆ VideoFFMPEGPipeCaptureRef

◆ WireRendererOldRef

◆ WireRendererRef

Definition at line 53 of file WireRenderer.h.

Enumeration Type Documentation

◆ TextureMode

Enumerator
DIFFUSE_TEXTURE 
SHADOW_TEXTURE 
SHADOW_JITTER_TEXTURE 
NORMALMAP_TEXTURE 
HEIGHTMAP_TEXTURE 
SPECULARMAP_TEXTURE 
SPHEREMAP_TEXTURE 

Definition at line 89 of file utils.h.

Function Documentation

◆ addRenderCallbackToFracture()

AGXOSG_EXPORT void agxOSG::addRenderCallbackToFracture ( agxModel::FractureGenerator *  listener,
osg::Group *  root 
)

Adds default createVisual callback to a FractureGenerator when new fragments are created that copies RenderData from the fractured geometry shape if it exists.

Referenced by setUniform().

◆ addRenderColorCallbackToFracture()

AGXOSG_EXPORT void agxOSG::addRenderColorCallbackToFracture ( agxModel::FractureGenerator *  listener,
osg::Group *  root,
const agx::Vec4f &  color 
)

Adds createVisual callback to a FractureGenerator when new fragments are created that sets a specific color.

Referenced by setUniform().

◆ addText()

AGXOSG_EXPORT bool agxOSG::addText ( const agxCollide::Geometry *  geometry,
osg::Group *  root,
const std::string &  text,
const agx::Vec3 &  relPosition = agx::Vec3(0, 0, 0),
const agx::Vec4f &  color = agxRender::Color::Yellow(),
agx::Real  size = 0.2 
)

Add text relative to an geometry.

The text object will follow the geometry if it moves.

Note
The Geometry must have a visual representation created before this call.
Parameters
geometry- subject geometry
root- root node
text- the text to render
relPosition- relative position to the geometry
color- color of the text
size- size of the text
Returns
false if the geometry does not have a visual representation in the root parent

Referenced by agxRender::Graph::reserve(), and setUniform().

◆ create3DGrid() [1/2]

AGXOSG_EXPORT osg::Geometry* agxOSG::create3DGrid ( unsigned int  resU,
unsigned int  resV,
unsigned int  resW,
const osg::Vec3 &  origin,
const osg::Vec3 &  endPointX,
const osg::Vec3 &  endPointY,
const osg::Vec3 &  endPointZ,
float  width 
)

Create a uniform grid and adds it to a root.

Check return value to see if everything was successful. This function might be a little hard to use, since it uses osg-primitives. There is an easier to use variant of this function.

Parameters
resUThe resolution of the grid (in number of lines) in x.
resVThe resolution of the grid (in number of lines) in y.
resWThe resolution of the grid (in number of lines) in z.
originThe origin of the grid in world coordinates
endPointXThe end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x.
endPointYThe end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y.
endPointZThe end point of the grid in z coordinates. The distance between this point and the origin gives the length of the grid in z.
widthThe line width of the grid, this is in pixel size.
Return values
theosg::Geometry* containing the grid. Remember to add this geometry to a node.

◆ create3DGrid() [2/2]

AGXOSG_EXPORT osg::Geode* agxOSG::create3DGrid ( unsigned int  resU,
unsigned int  resV,
unsigned int  resW,
const agx::Vec3 &  origin,
const agx::Vec3 &  endPointX,
const agx::Vec3 &  endPointY,
const agx::Vec3 &  endPointZ,
float  width 
)

Create a uniform grid and adds it to a root.

Check return value to see if everything was successful.

Parameters
resUThe resolution of the grid (in number of lines) in x.
resVThe resolution of the grid (in number of lines) in y.
resWThe resolution of the grid (in number of lines) in z.
originThe origin of the grid in world coordinates
endPointXThe end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x.
endPointYThe end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y.
endPointZThe end point of the grid in z coordinates. The distance between this point and the origin gives the length of the grid in z.
widthThe line width of the grid, this is in pixel size.
Return values
Thecreated geode with the grid. This may be null if the method failed. Remember to add this geometry to a node.

Referenced by setUniform().

◆ createAxes() [1/6]

AGXOSG_EXPORT osg::MatrixTransform* agxOSG::createAxes ( agxCollide::Geometry *  geometry,
agx::Frame *  relativeTransform,
osg::Group *  root,
float  scale = 1,
const agx::Vec4f &  color = agx::Vec4f() 
)

Creates osg axes relative a geometry given relative transform.

If the relative transform is zero, the axes will be at model center of the geometry. If geometry = 0 the root node will be used as parent.

Referenced by agxOSG::ExampleApplication::getExitCode().

◆ createAxes() [2/6]

AGXOSG_EXPORT osg::MatrixTransform* agxOSG::createAxes ( agxCollide::Geometry *  geometry,
agx::AffineMatrix4x4  relativeTransform,
osg::Group *  root,
float  scale = 1,
const agx::Vec4f &  color = agx::Vec4f() 
)

◆ createAxes() [3/6]

AGXOSG_EXPORT osg::MatrixTransform* agxOSG::createAxes ( agx::RigidBody *  rb,
agx::Frame *  relativeTransform,
osg::Group *  root,
float  scale = 1.f,
const agx::Vec4f &  color = agx::Vec4f() 
)

Creates osg axes relative a rigid body given relative transform.

If the relative transform is zero, the axes will be at model center of the rigid body. If rigid body = 0 the root node will be used as parent.

◆ createAxes() [4/6]

AGXOSG_EXPORT osg::MatrixTransform* agxOSG::createAxes ( agx::RigidBody *  rb,
agx::AffineMatrix4x4  relativeTransform,
osg::Group *  root,
float  scale = 1.f,
const agx::Vec4f &  color = agx::Vec4f() 
)

◆ createAxes() [5/6]

AGXOSG_EXPORT osg::MatrixTransform* agxOSG::createAxes ( agx::AffineMatrix4x4  relativeTransform,
osg::Group *  root,
float  scale = 1.f,
const agx::Vec4f &  color = agx::Vec4f() 
)

◆ createAxes() [6/6]

AGXOSG_EXPORT void agxOSG::createAxes ( agx::Constraint *  constraint,
osg::Group *  root,
float  scale = 1.f,
const agx::Vec4f &  color = agx::Vec4f() 
)

Create axes at the constraint attachments.

Referenced by setUniform().

◆ createFrameTrajectoryDrawable()

AGXOSG_EXPORT osg::Geode* agxOSG::createFrameTrajectoryDrawable ( agxSDK::Simulation *  simulation,
osg::Group *  root,
agx::UInt  numPositions,
const agx::Vec4f &  defaultColor = agx::Vec4f(0.5, 0.5, 0.5, 1.0) 
)

Referenced by setUniform().

◆ createGrid() [1/2]

AGXOSG_EXPORT osg::Geometry* agxOSG::createGrid ( unsigned int  resU,
unsigned int  resV,
const osg::Vec3 &  origin,
const osg::Vec3 &  endPointX,
const osg::Vec3 &  endPointY,
bool  wireFrameMode = false 
)

Create a uniform grid.

This function might be a little hard to use, since it uses osg-primitives. There is an easier to use variant of this function.

Parameters
resUThe resolution of the grid (in number of lines) in x.
resVThe resolution of the grid (in number of lines) in y.
originThe origin of the grid in world coordinates
endPointXThe end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x.
endPointYThe end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y.
wireFrameModeunused
Return values
theosg::Geometry* containing the grid.

◆ createGrid() [2/2]

AGXOSG_EXPORT osg::Geode* agxOSG::createGrid ( unsigned int  resU,
unsigned int  resV,
const agx::Vec3 &  origin,
const agx::Vec3 &  endPointX,
const agx::Vec3 &  endPointY,
osg::Group *  root 
)

Create a uniform grid and adds it to a root.

Check return value to see if everything was successful.

Parameters
resUThe resolution of the grid (in number of lines) in x.
resVThe resolution of the grid (in number of lines) in y.
originThe origin of the grid in world coordinates
endPointXThe end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x.
endPointYThe end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y.
rootThe root that the grid should be added to. Non-zero.
Return values
Thegeode which is part of root now.

Referenced by setUniform().

◆ createLine()

AGXOSG_EXPORT osg::Geode* agxOSG::createLine ( const agx::Vec3 &  p1,
const agx::Vec3 &  p2,
const agx::Vec4 &  color,
float  width 
)

Create and return a new Line to render.

Check return value to see if everything was successful.

Parameters
p1,p2- Start, end points in WORLD coordinate system
color- An RGBt color array, where x is R, y is G, z is B and w is transparency
width- This is the number defining the line width in pixels
Return values
Thecreated geode with the line. This may be null if the method failed. Remember to add this geometry to a node.

Referenced by agxRender::RenderProxyFactory::create(), and setUniform().

◆ createParticleContactGraph()

AGXOSG_EXPORT osg::Geode* agxOSG::createParticleContactGraph ( agx::ParticleSystem *  particleSystem,
osg::Group *  root,
agx::Real  minForce,
agx::Real  maxForce 
)

Creates a visual of the particle contact network, which colors contacts depending on contact force.

Referenced by setUniform().

◆ createParticleTrajectoriesVisual()

AGXOSG_EXPORT osg::Geode* agxOSG::createParticleTrajectoriesVisual ( agx::ParticleSystem *  particleSystem,
osg::Group *  root,
agx::Real  sampling,
agx::UInt  numPositions 
)

Creates a visual of the particle position trajectories.

Parameters
sampling- Sampling fraction of particles that will be used for rendering trajectories. 0 (none) - 1.0 (all).
numPositions- Number of positions that will be used for each trajectory.

Referenced by setUniform().

◆ createPolyline()

AGXOSG_EXPORT osg::Geode* agxOSG::createPolyline ( const agx::Vec3Vector &  points,
const agx::Vec4 &  color,
float  width 
)

Create and return a new Polyine to render.

Check return value to see if everything was successful.

Parameters
points- A vector of points, in WORLD coordinate system, defining the polyline. Give at least two points
color- An RGBt color array, where x is R, y is G, z is B and w is transparency
width- This is the number defining the line width in pixels
Return values
Thecreated geode with the polyline. This may be null if the method failed. Remember to add this geometry to a node.

Referenced by setUniform().

◆ createRigidBodyTrajectoriesVisual()

AGXOSG_EXPORT osg::Geode* agxOSG::createRigidBodyTrajectoriesVisual ( agxSDK::Simulation *  simulation,
osg::Group *  root,
agx::Real  sampling,
agx::UInt  numPositions,
ScalarColorMap *  scalarColorMap = nullptr 
)

Creates a visual of the rigid body position trajectories.

Parameters
sampling- Sampling fraction of rigidBodies that will be used for rendering trajectories. 0 (none) - 1.0 (all).
numPositions- Number of positions that will be used for each trajectory.

Referenced by setUniform().

◆ createSkyBox()

AGXOSG_EXPORT osg::Geode* agxOSG::createSkyBox ( agx::Vector< osg::ref_ptr< osg::Image > > &  images,
float  size 
)

◆ createSkySphere()

AGXOSG_EXPORT osg::Geode* agxOSG::createSkySphere ( const std::string &  name,
agx::Vector< osg::ref_ptr< osg::Image > > &  images,
float  radius 
)

◆ createText()

AGXOSG_EXPORT osg::Geode* agxOSG::createText ( const std::string &  text,
const agx::Vec3 &  relPosition = agx::Vec3(0, 0, 0),
const agx::Vec4f &  color = agxRender::Color::Yellow(),
agx::Real  size = 0.2 
)

Create a text object.

Parameters
text- the text to render
relPosition- relative position to the geometry
color- color of the text
size- size of the text
Returns
The text node

Referenced by agxRender::RenderProxyFactory::create(), and setUniform().

◆ createTexture()

AGXOSG_EXPORT osg::Texture2D* agxOSG::createTexture ( const std::string &  filename)

Create a Texture2D object that can be assigned to nodes.

Parameters
filename- Path to the image file

◆ createTextureCubeMap() [1/2]

AGXOSG_EXPORT osg::TextureCubeMap * agxOSG::createTextureCubeMap ( agx::Vector< osg::ref_ptr< osg::Image > > &  images)

Internal functions for creating texture cube maps.

Referenced by setUniform().

◆ createTextureCubeMap() [2/2]

AGXOSG_EXPORT osg::TextureCubeMap * agxOSG::createTextureCubeMap ( const std::string &  imagename,
const std::string &  filetype 
)

◆ createTrimesh()

AGXOSG_EXPORT agxCollide::Trimesh* agxOSG::createTrimesh ( osg::Node *  node)

Extracts mesh data from an osg::Node, creates an agxCollide::Trimesh from it and returns the result.

All triangle data read from the Node will be merged into one TriangleMesh in the world coordinate system.

Referenced by agxSDK::SimulationObject::operator const agxCollide::Geometry *(), and setUniform().

◆ createVisual() [1/8]

AGXOSG_EXPORT agxOSG::GeometryNode* agxOSG::createVisual ( const agxCollide::Geometry *  geometry,
osg::Group *  root,
float  detailRatio = 1.0f,
bool  createAxes = false,
bool  evenIfSensor = true 
)

Given a geometry, this function create visual representation of the shape.

Parameters
geometry. The geometry for which a visual node should be created
root- The root node for the visual node (will be inserted)
detailRatio- The tessellation count, the higher, the more detailed
createAxes- If true, xyz axes are created at the center
evenIfSensor- Create visual even if the geometry is a sensor

Referenced by agxOSG::ExampleApplication::getExitCode().

◆ createVisual() [2/8]

Given a particle system, create a visual representation.

◆ createVisual() [3/8]

AGXOSG_EXPORT osg::Group* agxOSG::createVisual ( agx::RigidBodyEmitter *  emitter,
osg::Group *  root 
)

◆ createVisual() [4/8]

AGXOSG_EXPORT osg::Group* agxOSG::createVisual ( agx::Emitter *  emitter,
osg::Group *  root 
)

◆ createVisual() [5/8]

AGXOSG_EXPORT osg::MatrixTransform* agxOSG::createVisual ( agx::ObserverFrame *  frame,
osg::Group *  root,
float  scale = 1 
)

Create a visual representation of an ObserverFrame (axis)

◆ createVisual() [6/8]

AGXOSG_EXPORT osg::Group* agxOSG::createVisual ( agx::RigidBody *  rb,
osg::Group *  root,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

Given a rigid body, this function creates visual representation of all the geometries.

◆ createVisual() [7/8]

AGXOSG_EXPORT osg::Group* agxOSG::createVisual ( agxSDK::Assembly *  parent,
osg::Group *  root,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

Given an Assembly, this function creates visual representation of all the geometries.

◆ createVisual() [8/8]

AGXOSG_EXPORT osg::Group* agxOSG::createVisual ( agxSDK::Simulation *  simulation,
osg::Group *  root,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

Given a simulation, this function creates visual representation of all the contents in the simulation, such as geometries and particle systems.

Referenced by setUniform().

◆ createVisualTemplateCaching()

AGXOSG_EXPORT osg::Group* agxOSG::createVisualTemplateCaching ( agxSDK::Assembly *  parent,
osg::Group *  root,
agxOSG::RigidBodyRenderCache *  cache = nullptr,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

Given an Assembly, this function creates visual representation of all the geometries.

Referenced by setUniform().

◆ createVisualUpdater()

AGXOSG_EXPORT agxSDK::EventListener* agxOSG::createVisualUpdater ( agxSDK::EventListener *  listener,
osg::Group *  root 
)

Given some specific classes inheriting from EventListener, this function can handle custom visual representations and effects.

Parameters
listener- an EventListener which hold some information about how to update visuals
root- a pointer to the osg::Group root node where the visuals to update are expected to be
Returns
- a new listener which will update the visual, null on fail.

Referenced by setUniform().

◆ createVisualWithGeometryConnection()

AGXOSG_EXPORT std::tuple<osg::Group*, std::vector<size_t> > agxOSG::createVisualWithGeometryConnection ( agx::RigidBody *  rb,
osg::Group *  root,
float  detailRatio = 1.0f,
bool  createAxes = false 
)

Given a rigid body, this function creates visual representation of all the geometries.

Returns
- a tuple with the group and a vector. The group contains children with visual nodes of the geometries in the rb. The vector has indices connecting the visal nodes (as children in the group) with the geometries in the rb->getGeometries() vector.

Referenced by setUniform().

◆ findFrameTrajectoryDrawable()

AGXOSG_EXPORT agxOSG::FrameTrajectoryDrawable* agxOSG::findFrameTrajectoryDrawable ( osg::Group *  root)

Referenced by setUniform().

◆ findGeometryNode()

AGXOSG_EXPORT GeometryNode* agxOSG::findGeometryNode ( const agxCollide::Geometry *  geometry,
osg::Group *  rootNode 
)

Finds the geometry node associated to a geometry.

Returns
the geometry node if the geometry has one, otherwise false

◆ findParticleSystemDrawable()

AGXOSG_EXPORT agxOSG::ParticleSystemDrawable* agxOSG::findParticleSystemDrawable ( osg::Group *  root)

Referenced by setUniform().

◆ findRigidBodySystemDrawable()

AGXOSG_EXPORT agxOSG::RigidBodySystemDrawable* agxOSG::findRigidBodySystemDrawable ( osg::Group *  root)

Referenced by setUniform().

◆ findText()

AGXOSG_EXPORT osgText::Text* agxOSG::findText ( const agxCollide::Geometry *  geometry,
osg::Group *  root,
size_t  index = 0 
)

Finds a text object already added to the geometry (so the text can be changed).

If several text objects have been added to the geometry, index will find you the i'th text object added.

Parameters
geometry- geometry with agxOSG::GeometryNode and text
root- root node
index- index of the text object to find (default 0)
Returns
text object if present - otherwise false

Referenced by setUniform().

◆ forceWireFrameModeOn()

AGXOSG_EXPORT bool agxOSG::forceWireFrameModeOn ( osg::Node *  node)

Referenced by setUniform().

◆ GeometryNode_reference()

AGXOSG_EXPORT void agxOSG::GeometryNode_reference ( agxOSG::GeometryNode *  node)

◆ GeometryNode_unreference()

AGXOSG_EXPORT void agxOSG::GeometryNode_unreference ( agxOSG::GeometryNode *  node)

◆ getEnableOutline()

AGXOSG_EXPORT bool agxOSG::getEnableOutline ( osg::Node *  node)

Referenced by setUniform().

◆ getHoveredGeometryContact()

AGXOSG_EXPORT agxCollide::LocalGeometryContact agxOSG::getHoveredGeometryContact ( const osg::Camera *  camera,
agxCollide::Space *  space,
float  x,
float  y 
)

Get a geometry contact given the current camera and a position in the camera window.

If the ray passes through more than one geometry, the closest contact is returned.

Parameters
camera- A camera object (from e.g. agxOSG::ExampleApplication::getCamera())
space- A space object (from e.g. agxSDK::Simulation::getSpace())
x- The x position in the camera window (from e.g. agxSDK::GuiEventListener::update(x, y))
y- The y position in the camera window (from e.g. agxSDK::GuiEventListener::update(x, y))

Referenced by setUniform().

◆ getNearFarPoints()

AGXOSG_EXPORT void agxOSG::getNearFarPoints ( const osg::Camera *  camera,
float  x,
float  y,
agx::Vec3 &  near,
agx::Vec3 &  far 
)

Get the near and far points of the current window, given a camera and x and y position.

Note that buffers for the near and far points have to be supplied.

Parameters
camera- A camera object
x- The x position in the camera window
y- The y position in the camera window
near- The near point
far- The far point

Referenced by setUniform().

◆ loadCubeMapImages()

AGXOSG_EXPORT bool agxOSG::loadCubeMapImages ( const std::string &  imagename,
const std::string &  filetype,
agx::Vector< osg::ref_ptr< osg::Image > > &  images 
)

Internal function to load images into an array.

Referenced by setUniform().

◆ makeRasterFont()

unsigned int AGXOSG_EXPORT agxOSG::makeRasterFont ( void  )

◆ readFile()

AGXOSG_EXPORT bool agxOSG::readFile ( const std::string &  filename,
agxSDK::Simulation *  simulation,
osg::Group *  root,
agxSDK::Assembly *  parent = nullptr,
agx::Real  detailRatio = 0.35,
bool  createAxis = false,
agx::UInt  selection = agxSDK::Simulation::READ_DEFAULT,
agxOSG::RigidBodyRenderCache *  cache = nullptr 
)

Utility function for reading various files:

  • .agx/.aagx (serialization of simulations)

The file will be searched for using AGX_ENVIRONMENT().getFilePath(agxIO::Environment::RESOURCE_PATH).find() which means that it will use the AGX_FILE_PATH environment variable and path's added to the RESOURCE_PATH.

The data will be added to the simulation given as an argument

Parameters
filename- Filename to be opened and read
simulation- The simulation where the content of the data will be added
root- The openscenegraph root node where visuals (if available) will be put
parent- Objects read from the file will be put in this assembly if it is != nullptr
detailRatio- The detail of the visual models, default=0.34, higher is more tessellated
createAxis- If true XYZ axis will be attached to the visual model
selection- Selection of things to read from file. See agxSDK::Simulation::ReadSelectionMask. Only for .agx or .aagx.
Returns
true if loading was successful, otherwise false.

◆ readNodeFile() [1/2]

AGXOSG_EXPORT osg::Node* agxOSG::readNodeFile ( const std::string &  filename,
bool  searchForIve = false 
)

Read a specified filename from disk and return it as a OpenSceneGraph node.

The special thing with this is that if searchForIve is true, it will try to find a file named [path]/[filename].ive instead of the specified extension. Will add the option "noRotation" so that osgDB's plugin for reading .obj-files will not rotate them 90 degrees about the (-1, 0, 0) axis (as it does by default).

Parameters
filename- path to the model that is supposed to be read
searchForIve- if true, a filename with the ive extension will be read instead if found.
Returns
true if model is loaded successfully.

◆ readNodeFile() [2/2]

AGXOSG_EXPORT osg::Node* agxOSG::readNodeFile ( const std::string &  filename,
const osgDB::ReaderWriter::Options *  options,
bool  searchForIve = false 
)

Read a specified filename from disk and return it as a OpenSceneGraph node.

The special thing with this is that if searchForIve is true, it will try to find a file named [path]/[filename].ive instead of the specified extension.

Parameters
filename- path to the model that is supposed to be read
options- Options for the call to osgDB::readNodeFile. Recommendation: add the option "noRotation" so that osgDB's plugin for reading .obj-files will not rotate them 90 degrees about the (-1, 0, 0) axis (as it does by default).
searchForIve- if true, a filename with the ive extension will be read instead if found.
Returns
true if model is loaded successfully.

◆ removeText()

AGXOSG_EXPORT bool agxOSG::removeText ( const agxCollide::Geometry *  geometry,
osg::Group *  root,
size_t  index = 0 
)

Remove text from a geometry.

If several text objects have been added to the geometry,index will find you the i'th text object added.

Parameters
geometry- subject geometry
root- root node
index- index of the text object to remove
Returns
true if text object found, false otherwise

Referenced by setUniform().

◆ renderText()

void AGXOSG_EXPORT agxOSG::renderText ( float  x,
float  y,
const char *  s 
)

Render the bitmap text using previously created bitmap fonts.

Referenced by agxOSG::TextGeometry::TextDrawCallback::drawImplementation().

◆ setAlpha()

AGXOSG_EXPORT void agxOSG::setAlpha ( osg::Node *  node,
float  alpha 
)

Set the alpha part of the material for a node.

0 completely transparent, 1 - opaque

Referenced by agxRender::RenderManager::CacheBase::CacheBase(), agxRender::RenderManager::PrimitiveCache< agxRender::HollowCylinderProxy >::setAlpha(), and setUniform().

◆ setAmbientColor()

AGXOSG_EXPORT void agxOSG::setAmbientColor ( osg::Node *  node,
const agx::Vec4f &  color 
)

Set the ambient part of a material for a node.

If the node does not have a material, a new one will be created and assigned to the node.

Referenced by setUniform().

◆ setCubeMapTexture()

AGXOSG_EXPORT bool agxOSG::setCubeMapTexture ( osg::Node *  node,
const std::string &  imagePath,
const std::string &  imageType = ".dds" 
)

Assigns a Cubemap texture to the specified node.

Parameters
node- Node to which the texture will be assigned
imagePath- Path to the initial part of the 6 files that build up the cubemap:

[imagePath]/negx.[imageType] [imagePath]/posx.[imageType] [imagePath]/negy.[imageType] [imagePath]/posy.[imageType] [imagePath]/negz.[imageType] [imagePath]/posz.[imageType]

Parameters
imageType- The file type of the cubemap textures. default is ".dds"
Returns
true if files are found and the node has a cube map assigned

◆ setDiffuseColor() [1/3]

AGXOSG_EXPORT void agxOSG::setDiffuseColor ( osg::Node *  node,
const agx::Vec4f &  color 
)

Set the diffuse part of a material for a node.

If the node does not have a material, a new one will be created and assigned to the node.

◆ setDiffuseColor() [2/3]

AGXOSG_EXPORT void agxOSG::setDiffuseColor ( agx::RigidBody *  rb,
const agx::Vec4f &  color,
osg::Group *  root 
)

Set the diffuse part of a material for a rigid body (all geometries).

Only geometries with geometry node in the scene graph will have their color changed.

◆ setDiffuseColor() [3/3]

AGXOSG_EXPORT void agxOSG::setDiffuseColor ( agxCollide::Geometry *  geometry,
const agx::Vec4f &  color,
osg::Group *  root 
)

Set the diffuse part of a material for a geometry.

If the geometry doesn't have a geometry node (in the scene graph), this call will be ignored.

Referenced by setUniform().

◆ setEnableLight()

AGXOSG_EXPORT void agxOSG::setEnableLight ( bool  enable,
int  lightNum,
osg::Node *  node 
)

Referenced by setUniform().

◆ setEnableOutline()

AGXOSG_EXPORT bool agxOSG::setEnableOutline ( osg::Node *  node,
bool  enabled,
const agxRender::Color &  color = agxRender::Color(1, 1, 0, 1),
float  width = 2.0 
)

Referenced by setUniform().

◆ setEnableWireFrameMode()

AGXOSG_EXPORT bool agxOSG::setEnableWireFrameMode ( osg::Node *  node,
bool  flag 
)

Referenced by setUniform().

◆ setEnvMapReflectionCoefficient()

AGXOSG_EXPORT void agxOSG::setEnvMapReflectionCoefficient ( osg::Node *  node,
float  coeff 
)

Specifies the amount of reflection that should be used (if CubeMap or SphereMap is assigned to the node).

0 - No reflection 1 - Only reflection

◆ setOrbitCamera()

AGXOSG_EXPORT bool agxOSG::setOrbitCamera ( osgViewer::Viewer *  viewer,
agxOSG::GeometryNode *  node,
const agx::Vec3 &  eye,
const agx::Vec3 &  center,
const agx::Vec3 &  up,
int  trackerMode 
)

◆ setShininess()

AGXOSG_EXPORT void agxOSG::setShininess ( osg::Node *  node,
float  shininess 
)

Set the shininess exponent for the Phong specular model.

Referenced by setUniform().

◆ setSpecularColor()

AGXOSG_EXPORT void agxOSG::setSpecularColor ( osg::Node *  node,
const agx::Vec4f &  color 
)

Set the specular part of a material for a node.

If the node does not have a material, a new one will be created and assigned to the node.

Referenced by setUniform().

◆ setTexture() [1/6]

AGXOSG_EXPORT bool agxOSG::setTexture ( const agxCollide::Geometry *  geometry,
osg::Group *  rootNode,
const std::string &  imagePath,
bool  repeat = false,
TextureMode  mode = DIFFUSE_TEXTURE 
)

Read an image from disk and apply to the specified geometry as a 2D Texture in OVERRIDE|PROTECTED mode.

Note
For this to work, geometry has to have an agxOSG::GeometryNode in the root. createVisual( geometry, root )
Parameters
geometry- geometry to search for
rootNode- Parent node in which the GeometryNode associated to geometry should be found
imagePath- Path to the image to be used as a texture
repeat- If true the texture will use WRAP mode REPEAT
mode- Texture mode
Returns
false if image cannot be read.

◆ setTexture() [2/6]

AGXOSG_EXPORT bool agxOSG::setTexture ( const agx::RigidBody *  rigidBody,
osg::Group *  rootNode,
const std::string &  imagePath,
bool  repeat = false,
TextureMode  mode = DIFFUSE_TEXTURE 
)

For all geometries in the rigid body, this function will set a 2D texture in OVERRIDE|PROTECTED mode.

Note
For this to work, the geometries have to have an agxOSG::GeometryNode in the root. createVisual( rigidBody, root )
Parameters
rigidBody- body to search for
rootNode- Parent node in which the GeometryNode associated to geometry should be found
imagePath- Path to the image to be used as a texture
repeat- If true the texture will use WRAP mode REPEAT
mode- Texture mode
Returns
false if image cannot be read.

◆ setTexture() [3/6]

AGXOSG_EXPORT bool agxOSG::setTexture ( osg::Node *  node,
const std::string &  imagePath,
bool  repeat = false,
TextureMode  mode = DIFFUSE_TEXTURE,
float  scaleU = 1.0f,
float  scaleV = 1.0f 
)

Read an image from disk and apply to the specified node as a 2D Texture in OVERRIDE|PROTECTED mode.

Parameters
node- Node to attach texture to
imagePath- Path to the image to be used as a texture
repeat- If true the texture will use WRAP mode REPEAT
mode- Texture mode
scaleU- Scaling of texture in U
scaleV- Scaling of texture in V
Returns
false if image cannot be read.

◆ setTexture() [4/6]

AGXOSG_EXPORT bool agxOSG::setTexture ( osg::Node *  node,
osg::Texture2D *  texture,
bool  repeat = false,
TextureMode  mode = DIFFUSE_TEXTURE,
float  scaleU = 1.0f,
float  scaleV = 1.0f 
)

Apply a 2D Texture to the specified node in OVERRIDE|PROTECTED mode.

Parameters
node- Node to attach texture to
texture- The texture to apply
repeat- If true the texture will use WRAP mode REPEAT
mode- Texture mode
scaleU- Scaling of texture in U
scaleV- Scaling of texture in V
Returns
false if image cannot be read.

◆ setTexture() [5/6]

AGXOSG_EXPORT bool agxOSG::setTexture ( osg::Node *  node,
agxOSG::Texture2D *  texture,
bool  repeat = false,
TextureMode  mode = DIFFUSE_TEXTURE,
float  scaleU = 1.0f,
float  scaleV = 1.0f 
)

Apply a 2D Texture to the specified node in OVERRIDE|PROTECTED mode.

Parameters
node- Node to attach texture to
texture- The texture to apply
repeat- If true the texture will use WRAP mode REPEAT
mode- Texture mode
scaleU- Scaling of texture in U
scaleV- Scaling of texture in V
Returns
false if image cannot be read.

◆ setTexture() [6/6]

AGXOSG_EXPORT bool agxOSG::setTexture ( agxOSG::GeometryNode *  node,
agxOSG::Texture2D *  texture,
bool  repeat = false,
TextureMode  mode = DIFFUSE_TEXTURE,
float  scaleU = 1.0f,
float  scaleV = 1.0f 
)

Apply a 2D Texture to the specified node in OVERRIDE|PROTECTED mode.

Parameters
node- Node to attach texture to
texture- The texture to apply
repeat- If true the texture will use WRAP mode REPEAT
mode- Texture mode
scaleU- Scaling of texture in U
scaleV- Scaling of texture in V
Returns
false if image cannot be read.

◆ setUniform()

◆ Text_reference()

AGXOSG_EXPORT void agxOSG::Text_reference ( agxOSG::Text *  node)

◆ Text_unreference()

AGXOSG_EXPORT void agxOSG::Text_unreference ( agxOSG::Text *  node)

◆ toggleWireFrameMode()

AGXOSG_EXPORT bool agxOSG::toggleWireFrameMode ( osg::Node *  node)

Referenced by setUniform().

◆ Transform_reference()

AGXOSG_EXPORT void agxOSG::Transform_reference ( agxOSG::Transform *  node)

◆ Transform_unreference()

AGXOSG_EXPORT void agxOSG::Transform_unreference ( agxOSG::Transform *  node)

Variable Documentation

◆ defaultFontName

const char* agxOSG::defaultFontName