AGX Dynamics 2.37.3.3
Loading...
Searching...
No Matches
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 CableDamageDataRendererCableDamageDataRendererConstObserver
 
typedef agx::ref_ptr< const CableDamageDataRendererCableDamageDataRendererConstRef
 
typedef agx::observer_ptr< CableDamageDataRendererCableDamageDataRendererObserver
 
typedef agx::ref_ptr< CableDamageDataRendererCableDamageDataRendererRef
 
typedef agx::observer_ptr< const CableDamageRendererCableDamageRendererConstObserver
 
typedef agx::ref_ptr< const CableDamageRendererCableDamageRendererConstRef
 
typedef agx::observer_ptr< CableDamageRendererCableDamageRendererObserver
 
typedef agx::ref_ptr< CableDamageRendererCableDamageRendererRef
 
typedef osgGA::MatrixManipulator CameraManipulatorType
 
typedef agx::observer_ptr< const ClipPlaneClipPlaneConstObserver
 
typedef agx::ref_ptr< const ClipPlaneClipPlaneConstRef
 
typedef agx::observer_ptr< ClipPlaneClipPlaneObserver
 
typedef agx::Vector< ClipPlaneObserverClipPlaneObserverVector
 
typedef agx::VectorPOD< ClipPlane * > ClipPlanePtrVector
 
typedef agx::ref_ptr< ClipPlaneClipPlaneRef
 
typedef agx::Vector< ClipPlaneRefClipPlaneRefVector
 
typedef osg::ref_ptr< CylinderGeometryShaderCylinderGeometryShaderRef
 
typedef agx::observer_ptr< const ExampleApplicationExampleApplicationConstObserver
 
typedef agx::ref_ptr< const ExampleApplicationExampleApplicationConstRef
 
typedef agx::observer_ptr< const ExampleApplicationListenerExampleApplicationListenerConstObserver
 
typedef agx::ref_ptr< const ExampleApplicationListenerExampleApplicationListenerConstRef
 
typedef agx::observer_ptr< ExampleApplicationListenerExampleApplicationListenerObserver
 
typedef agx::ref_ptr< ExampleApplicationListenerExampleApplicationListenerRef
 
typedef agx::observer_ptr< ExampleApplicationExampleApplicationObserver
 
typedef agx::ref_ptr< ExampleApplicationExampleApplicationRef
 
typedef agx::observer_ptr< const ExternalProcessExternalProcessConstObserver
 
typedef agx::ref_ptr< const ExternalProcessExternalProcessConstRef
 
typedef agx::observer_ptr< ExternalProcessExternalProcessObserver
 
typedef agx::ref_ptr< ExternalProcessExternalProcessRef
 
typedef agx::observer_ptr< const FrameTrajectoryDrawableFrameTrajectoryDrawableConstObserver
 
typedef agx::ref_ptr< const FrameTrajectoryDrawableFrameTrajectoryDrawableConstRef
 
typedef agx::observer_ptr< FrameTrajectoryDrawableFrameTrajectoryDrawableObserver
 
typedef agx::ref_ptr< FrameTrajectoryDrawableFrameTrajectoryDrawableRef
 
typedef agx::observer_ptr< const GatherAvgPressureGatherAvgPressureConstObserver
 
typedef agx::ref_ptr< const GatherAvgPressureGatherAvgPressureConstRef
 
typedef agx::observer_ptr< GatherAvgPressureGatherAvgPressureObserver
 
typedef agx::ref_ptr< GatherAvgPressureGatherAvgPressureRef
 
typedef agx::observer_ptr< const GatherMaxPressureGatherMaxPressureConstObserver
 
typedef agx::ref_ptr< const GatherMaxPressureGatherMaxPressureConstRef
 
typedef agx::observer_ptr< GatherMaxPressureGatherMaxPressureObserver
 
typedef agx::ref_ptr< GatherMaxPressureGatherMaxPressureRef
 
typedef agx::observer_ptr< const GranularMergedBodyDrawableGranularMergedBodyDrawableConstObserver
 
typedef agx::ref_ptr< const GranularMergedBodyDrawableGranularMergedBodyDrawableConstRef
 
typedef agx::observer_ptr< GranularMergedBodyDrawableGranularMergedBodyDrawableObserver
 
typedef agx::ref_ptr< GranularMergedBodyDrawableGranularMergedBodyDrawableRef
 
typedef agx::observer_ptr< const GranularMergedBodyDrawableSpritesGranularMergedBodyDrawableSpritesConstObserver
 
typedef agx::ref_ptr< const GranularMergedBodyDrawableSpritesGranularMergedBodyDrawableSpritesConstRef
 
typedef agx::observer_ptr< GranularMergedBodyDrawableSpritesGranularMergedBodyDrawableSpritesObserver
 
typedef agx::ref_ptr< GranularMergedBodyDrawableSpritesGranularMergedBodyDrawableSpritesRef
 
typedef agx::observer_ptr< const GraphRendererGraphRendererConstObserver
 
typedef agx::ref_ptr< const GraphRendererGraphRendererConstRef
 
typedef agx::observer_ptr< GraphRendererGraphRendererObserver
 
typedef agx::ref_ptr< GraphRendererGraphRendererRef
 
typedef agx::ref_ptr< GuiEventListenerGuiEventListenerRef
 
typedef agx::observer_ptr< const HeightFieldHeightFieldConstObserver
 
typedef agx::ref_ptr< const HeightFieldHeightFieldConstRef
 
typedef agx::observer_ptr< HeightFieldHeightFieldObserver
 
typedef agx::ref_ptr< HeightFieldHeightFieldRef
 
typedef agx::observer_ptr< const HudTextManagerHudTextManagerConstObserver
 
typedef agx::ref_ptr< const HudTextManagerHudTextManagerConstRef
 
typedef agx::observer_ptr< HudTextManagerHudTextManagerObserver
 
typedef agx::ref_ptr< HudTextManagerHudTextManagerRef
 
typedef agx::observer_ptr< const ImageCaptureBaseImageCaptureBaseConstObserver
 
typedef agx::ref_ptr< const ImageCaptureBaseImageCaptureBaseConstRef
 
typedef agx::observer_ptr< ImageCaptureBaseImageCaptureBaseObserver
 
typedef agx::ref_ptr< ImageCaptureBaseImageCaptureBaseRef
 
typedef agx::observer_ptr< const ImageCaptureImageCaptureConstObserver
 
typedef agx::ref_ptr< const ImageCaptureImageCaptureConstRef
 
typedef agx::observer_ptr< ImageCaptureImageCaptureObserver
 
typedef agx::ref_ptr< ImageCaptureImageCaptureRef
 
typedef agx::Vector< PanelRefPanelContainer
 
typedef osg::ref_ptr< PanelPanelRef
 
typedef agx::observer_ptr< const PickHandlerPickHandlerConstObserver
 
typedef agx::ref_ptr< const PickHandlerPickHandlerConstRef
 
typedef agx::observer_ptr< PickHandlerPickHandlerObserver
 
typedef agx::ref_ptr< PickHandlerPickHandlerRef
 
typedef osg::ref_ptr< PointSpriteDrawablePointSpriteDrawableRef
 
typedef agx::observer_ptr< const PressureAtlasPressureAtlasConstObserver
 
typedef agx::ref_ptr< const PressureAtlasPressureAtlasConstRef
 
typedef agx::observer_ptr< const PressureAtlasManagerPressureAtlasManagerConstObserver
 
typedef agx::ref_ptr< const PressureAtlasManagerPressureAtlasManagerConstRef
 
typedef agx::observer_ptr< PressureAtlasManagerPressureAtlasManagerObserver
 
typedef agx::ref_ptr< PressureAtlasManagerPressureAtlasManagerRef
 
typedef agx::observer_ptr< PressureAtlasPressureAtlasObserver
 
typedef agx::ref_ptr< PressureAtlasPressureAtlasRef
 
typedef agx::observer_ptr< const PressureFieldRendererPressureFieldRendererConstObserver
 
typedef agx::ref_ptr< const PressureFieldRendererPressureFieldRendererConstRef
 
typedef agx::observer_ptr< PressureFieldRendererPressureFieldRendererObserver
 
typedef agx::ref_ptr< PressureFieldRendererPressureFieldRendererRef
 
typedef agx::observer_ptr< const PressureFromContactsPressureFromContactsConstObserver
 
typedef agx::ref_ptr< const PressureFromContactsPressureFromContactsConstRef
 
typedef agx::observer_ptr< PressureFromContactsPressureFromContactsObserver
 
typedef agx::ref_ptr< PressureFromContactsPressureFromContactsRef
 
typedef agx::observer_ptr< const PressureGeneratorPressureGeneratorConstObserver
 
typedef agx::ref_ptr< const PressureGeneratorPressureGeneratorConstRef
 
typedef agx::observer_ptr< PressureGeneratorPressureGeneratorObserver
 
typedef agx::Vector< PressureGeneratorObserverPressureGeneratorObserverVector
 
typedef agx::VectorPOD< PressureGenerator * > PressureGeneratorPtrVector
 
typedef agx::ref_ptr< PressureGeneratorPressureGeneratorRef
 
typedef agx::Vector< PressureGeneratorRefPressureGeneratorRefVector
 
typedef agx::observer_ptr< const PressureRendererPressureRendererConstObserver
 
typedef agx::ref_ptr< const PressureRendererPressureRendererConstRef
 
typedef agx::observer_ptr< PressureRendererPressureRendererObserver
 
typedef agx::ref_ptr< PressureRendererPressureRendererRef
 
typedef agx::observer_ptr< const PressureToColorConverterPressureToColorConverterConstObserver
 
typedef agx::ref_ptr< const PressureToColorConverterPressureToColorConverterConstRef
 
typedef agx::observer_ptr< PressureToColorConverterPressureToColorConverterObserver
 
typedef agx::Vector< PressureToColorConverterObserverPressureToColorConverterObserverVector
 
typedef agx::VectorPOD< PressureToColorConverter * > PressureToColorConverterPtrVector
 
typedef agx::ref_ptr< PressureToColorConverterPressureToColorConverterRef
 
typedef agx::Vector< PressureToColorConverterRefPressureToColorConverterRefVector
 
typedef agx::observer_ptr< const PressureToRgbaConverterPressureToRgbaConverterConstObserver
 
typedef agx::ref_ptr< const PressureToRgbaConverterPressureToRgbaConverterConstRef
 
typedef agx::observer_ptr< PressureToRgbaConverterPressureToRgbaConverterObserver
 
typedef agx::ref_ptr< PressureToRgbaConverterPressureToRgbaConverterRef
 
typedef agx::observer_ptr< const RenderProxyFactoryRenderProxyFactoryConstObserver
 
typedef agx::ref_ptr< const RenderProxyFactoryRenderProxyFactoryConstRef
 
typedef agx::observer_ptr< RenderProxyFactoryRenderProxyFactoryObserver
 
typedef agx::ref_ptr< RenderProxyFactoryRenderProxyFactoryRef
 
typedef agx::observer_ptr< const RenderTargetRenderTargetConstObserver
 
typedef agx::ref_ptr< const RenderTargetRenderTargetConstRef
 
typedef agx::observer_ptr< RenderTargetRenderTargetObserver
 
typedef agx::Vector< RenderTargetObserverRenderTargetObserverVector
 
typedef agx::VectorPOD< RenderTarget * > RenderTargetPtrVector
 
typedef agx::ref_ptr< RenderTargetRenderTargetRef
 
typedef agx::Vector< RenderTargetRefRenderTargetRefVector
 
typedef agx::observer_ptr< const RenderToImageRenderToImageConstObserver
 
typedef agx::ref_ptr< const RenderToImageRenderToImageConstRef
 
typedef agx::observer_ptr< RenderToImageRenderToImageObserver
 
typedef agx::Vector< RenderToImageObserverRenderToImageObserverVector
 
typedef agx::VectorPOD< RenderToImage * > RenderToImagePtrVector
 
typedef agx::ref_ptr< RenderToImageRenderToImageRef
 
typedef agx::Vector< RenderToImageRefRenderToImageRefVector
 
typedef agx::observer_ptr< const RenderToTextureRenderToTextureConstObserver
 
typedef agx::ref_ptr< const RenderToTextureRenderToTextureConstRef
 
typedef agx::observer_ptr< RenderToTextureRenderToTextureObserver
 
typedef agx::Vector< RenderToTextureObserverRenderToTextureObserverVector
 
typedef agx::VectorPOD< RenderToTexture * > RenderToTexturePtrVector
 
typedef agx::ref_ptr< RenderToTextureRenderToTextureRef
 
typedef agx::Vector< RenderToTextureRefRenderToTextureRefVector
 
typedef agx::observer_ptr< const RigidBodyRenderCacheRigidBodyRenderCacheConstObserver
 
typedef agx::ref_ptr< const RigidBodyRenderCacheRigidBodyRenderCacheConstRef
 
typedef agx::observer_ptr< RigidBodyRenderCacheRigidBodyRenderCacheObserver
 
typedef agx::ref_ptr< RigidBodyRenderCacheRigidBodyRenderCacheRef
 
typedef agx::observer_ptr< const RigidBodyTrajectoryDrawableRigidBodyTrajectoryDrawableConstObserver
 
typedef agx::ref_ptr< const RigidBodyTrajectoryDrawableRigidBodyTrajectoryDrawableConstRef
 
typedef agx::observer_ptr< RigidBodyTrajectoryDrawableRigidBodyTrajectoryDrawableObserver
 
typedef agx::ref_ptr< RigidBodyTrajectoryDrawableRigidBodyTrajectoryDrawableRef
 
typedef agx::ref_ptr< RockGeneratorRockGeneratorRef
 
typedef agx::observer_ptr< const ScalarColorMapScalarColorMapConstObserver
 
typedef agx::ref_ptr< const ScalarColorMapScalarColorMapConstRef
 
typedef agx::observer_ptr< ScalarColorMapScalarColorMapObserver
 
typedef agx::ref_ptr< ScalarColorMapScalarColorMapRef
 
typedef agx::observer_ptr< const SimpleDepthBufferLidarSimpleDepthBufferLidarConstObserver
 
typedef agx::ref_ptr< const SimpleDepthBufferLidarSimpleDepthBufferLidarConstRef
 
typedef agx::observer_ptr< SimpleDepthBufferLidarSimpleDepthBufferLidarObserver
 
typedef agx::ref_ptr< SimpleDepthBufferLidarSimpleDepthBufferLidarRef
 
typedef agx::ref_ptr< SimulationSerializerSimulationSerializerRef
 
typedef agx::ref_ptr< SplineRendererOldSplineRendererOldRef
 
typedef agx::ref_ptr< SplineRendererSplineRendererRef
 
typedef osg::ref_ptr< SplineShaderSplineShaderRef
 
typedef agx::ref_ptr< StatisticsRendererStatisticsRendererRef
 
typedef agx::observer_ptr< const TerrainVoxelRendererTerrainVoxelRendererConstObserver
 
typedef agx::ref_ptr< const TerrainVoxelRendererTerrainVoxelRendererConstRef
 
typedef agx::observer_ptr< TerrainVoxelRendererTerrainVoxelRendererObserver
 
typedef agx::ref_ptr< TerrainVoxelRendererTerrainVoxelRendererRef
 
typedef agx::ref_ptr< TreeTreeRef
 
typedef agx::ref_ptr< TreeRendererTreeRendererRef
 
typedef osg::TriangleFunctor< TriangleExtractOperatorBaseTriangleExtractOperator
 TriangleExtractOperator is the method inherit to create a operator that will be executed per triangle.
 
typedef agx::observer_ptr< const VideoFFMPEGPipeCaptureVideoFFMPEGPipeCaptureConstObserver
 
typedef agx::ref_ptr< const VideoFFMPEGPipeCaptureVideoFFMPEGPipeCaptureConstRef
 
typedef agx::observer_ptr< VideoFFMPEGPipeCaptureVideoFFMPEGPipeCaptureObserver
 
typedef agx::ref_ptr< VideoFFMPEGPipeCaptureVideoFFMPEGPipeCaptureRef
 
typedef agx::ref_ptr< WireRendererOldWireRendererOldRef
 
typedef agx::ref_ptr< WireRendererWireRendererRef
 

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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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::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.
 
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 (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.
 
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::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.
 
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.
 
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.
 
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.
 
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.
 
AGXOSG_EXPORT osg::Geode * createPolyline (const agx::Vec3Vector &points, const agx::Vec4 &color, float width)
 Create and return a new Polyine to render.
 
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.
 
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.
 
AGXOSG_EXPORT osg::Texture2D * createTexture (const std::string &filename)
 Create a Texture2D object that can be assigned to nodes.
 
AGXOSG_EXPORT osg::TextureCubeMap * createTextureCubeMap (agx::Vector< osg::ref_ptr< osg::Image > > &images)
 Internal functions for creating texture cube maps.
 
AGXOSG_EXPORT osg::TextureCubeMap * createTextureCubeMap (const std::string &imagename, const std::string &filetype)
 
AGXOSG_EXPORT agxCollide::TrimeshcreateTrimesh (osg::Node *node)
 Extracts mesh data from an osg::Node, creates an agxCollide::Trimesh from it and returns the result.
 
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)
 
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.
 
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.
 
AGXOSG_EXPORT osg::Group * createVisual (agx::RigidBodyEmitter *emitter, osg::Group *root)
 
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.
 
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.
 
AGXOSG_EXPORT agxOSG::GeometryNodecreateVisual (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.
 
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.
 
AGXOSG_EXPORT agxSDK::EventListenercreateVisualUpdater (agxSDK::EventListener *listener, osg::Group *root)
 Given some specific classes inheriting from EventListener, this function can handle custom visual representations and effects.
 
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.
 
AGXOSG_EXPORT agxOSG::FrameTrajectoryDrawablefindFrameTrajectoryDrawable (osg::Group *root)
 
AGXOSG_EXPORT GeometryNodefindGeometryNode (const agxCollide::Geometry *geometry, osg::Group *rootNode)
 Finds the geometry node associated to a geometry.
 
AGXOSG_EXPORT agxOSG::ParticleSystemDrawablefindParticleSystemDrawable (osg::Group *root)
 
AGXOSG_EXPORT agxOSG::RigidBodySystemDrawablefindRigidBodySystemDrawable (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).
 
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.
 
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.
 
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.
 
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:
 
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.
 
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.
 
AGXOSG_EXPORT bool removeText (const agxCollide::Geometry *geometry, osg::Group *root, size_t index=0)
 Remove text from a geometry.
 
void AGXOSG_EXPORT renderText (float x, float y, const char *s)
 Render the bitmap text using previously created bitmap fonts.
 
AGXOSG_EXPORT void setAlpha (osg::Node *node, float alpha)
 Set the alpha part of the material for a node.
 
AGXOSG_EXPORT void setAmbientColor (osg::Node *node, const agx::Vec4f &color)
 Set the ambient part of a material for a node.
 
AGXOSG_EXPORT bool setCubeMapTexture (osg::Node *node, const std::string &imagePath, const std::string &imageType=".dds")
 Assigns a Cubemap texture to the specified node.
 
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).
 
AGXOSG_EXPORT void setDiffuseColor (agxCollide::Geometry *geometry, const agx::Vec4f &color, osg::Group *root)
 Set the diffuse part of a material for a geometry.
 
AGXOSG_EXPORT void setDiffuseColor (osg::Node *node, const agx::Vec4f &color)
 Set the diffuse part of a material for a node.
 
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).
 
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.
 
AGXOSG_EXPORT void setSpecularColor (osg::Node *node, const agx::Vec4f &color)
 Set the specular part of a material for a node.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.

References addRenderCallbackToFracture().

Referenced by addRenderCallbackToFracture().

◆ 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.

References addRenderColorCallbackToFracture().

Referenced by addRenderColorCallbackToFracture().

◆ 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

References addText().

Referenced by addText().

◆ create3DGrid() [1/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.

References create3DGrid().

◆ create3DGrid() [2/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.

References create3DGrid().

Referenced by create3DGrid().

◆ createAxes() [1/6]

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

References createAxes().

◆ createAxes() [2/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.

References createAxes().

◆ createAxes() [3/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() 
)

References createAxes().

◆ createAxes() [4/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.

References createAxes().

◆ createAxes() [5/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() 
)

References createAxes().

◆ createAxes() [6/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.

References createAxes().

Referenced by createAxes().

◆ 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) 
)

◆ createGrid() [1/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.

References createGrid().

◆ createGrid() [2/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.

References createGrid().

Referenced by createGrid().

◆ 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.

References createLine().

Referenced by createLine().

◆ 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.

References createParticleContactGraph().

Referenced by createParticleContactGraph().

◆ 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.

References createParticleTrajectoriesVisual().

Referenced by createParticleTrajectoriesVisual().

◆ 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.

References createPolyline().

Referenced by createPolyline().

◆ 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.

References createRigidBodyTrajectoriesVisual().

Referenced by createRigidBodyTrajectoriesVisual().

◆ 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

References createText().

Referenced by createText().

◆ 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

References createTexture().

Referenced by createTexture().

◆ 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 loadCubeMapImages().

◆ 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.

References createTrimesh().

Referenced by createTrimesh().

◆ createVisual() [1/8]

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

References createVisual().

◆ createVisual() [2/8]

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

Create a visual representation of an ObserverFrame (axis)

References createVisual().

◆ createVisual() [3/8]

Given a particle system, create a visual representation.

References createVisual().

◆ createVisual() [4/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.

References createVisual().

◆ createVisual() [5/8]

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

References createVisual().

◆ createVisual() [6/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.

References createVisual().

◆ createVisual() [7/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.

References createVisual().

◆ createVisual() [8/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

References createVisual().

Referenced by createVisual().

◆ 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.

References createVisualTemplateCaching().

Referenced by createVisualTemplateCaching().

◆ 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.

References createVisualUpdater().

Referenced by createVisualUpdater().

◆ 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.

References createVisualWithGeometryConnection().

Referenced by createVisualWithGeometryConnection().

◆ findFrameTrajectoryDrawable()

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

◆ 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

References findGeometryNode().

Referenced by findGeometryNode().

◆ findParticleSystemDrawable()

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

◆ findRigidBodySystemDrawable()

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

◆ 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

References findText().

Referenced by findText().

◆ forceWireFrameModeOn()

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

References forceWireFrameModeOn().

Referenced by forceWireFrameModeOn().

◆ 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)

References getEnableOutline().

Referenced by getEnableOutline().

◆ 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))

References getHoveredGeometryContact().

Referenced by getHoveredGeometryContact().

◆ 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

References getNearFarPoints().

Referenced by getNearFarPoints().

◆ 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.

References createTextureCubeMap(), and loadCubeMapImages().

Referenced by loadCubeMapImages().

◆ 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.

References readNodeFile().

Referenced by readNodeFile().

◆ 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.

References readNodeFile().

◆ 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

References removeText().

Referenced by removeText().

◆ 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

References setAlpha().

Referenced by setAlpha().

◆ 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.

References setAmbientColor().

Referenced by setAmbientColor().

◆ 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

References setCubeMapTexture().

Referenced by setCubeMapTexture().

◆ setDiffuseColor() [1/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.

References setDiffuseColor().

◆ setDiffuseColor() [2/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.

References setDiffuseColor().

◆ setDiffuseColor() [3/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.

References setDiffuseColor().

Referenced by setDiffuseColor().

◆ setEnableLight()

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

References setEnableLight().

Referenced by setEnableLight().

◆ 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 
)

References setEnableOutline().

Referenced by setEnableOutline().

◆ setEnableWireFrameMode()

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

◆ 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

References setEnvMapReflectionCoefficient().

Referenced by setEnvMapReflectionCoefficient().

◆ 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 
)

References setOrbitCamera().

Referenced by setOrbitCamera().

◆ setShininess()

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

Set the shininess exponent for the Phong specular model.

References setShininess().

Referenced by setShininess().

◆ 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.

References setSpecularColor().

Referenced by setSpecularColor().

◆ setTexture() [1/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.

References setTexture().

◆ 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.

References setTexture().

◆ setTexture() [3/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.

References setTexture().

Referenced by setTexture().

◆ setTexture() [4/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.

References setTexture().

◆ setTexture() [5/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.

References setTexture().

◆ setTexture() [6/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.

References setTexture().

◆ setUniform()

template<typename T >
void agxOSG::setUniform ( osg::Node *  node,
const std::string &  name,
value 
)

Definition at line 220 of file utils.h.

References setUniform().

Referenced by 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)

References toggleWireFrameMode().

Referenced by toggleWireFrameMode().

◆ 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
extern