AGX Dynamics 2.37.3.3
|
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... | |
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::Trimesh * | createTrimesh (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::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. | |
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::EventListener * | createVisualUpdater (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::FrameTrajectoryDrawable * | findFrameTrajectoryDrawable (osg::Group *root) |
AGXOSG_EXPORT GeometryNode * | findGeometryNode (const agxCollide::Geometry *geometry, osg::Group *rootNode) |
Finds the geometry node associated to a geometry. | |
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). | |
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 ¢er, 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 |
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 osg::Group *(* agxOSG::BuildScenePtr) (agxSDK::Simulation *simulation, ExampleApplication *application) |
Definition at line 117 of file ExampleApplication.h.
typedef agx::observer_ptr< const CableDamageDataRenderer > agxOSG::CableDamageDataRendererConstObserver |
Definition at line 54 of file CableDamageDataRenderer.h.
typedef agx::ref_ptr< const CableDamageDataRenderer > agxOSG::CableDamageDataRendererConstRef |
Definition at line 54 of file CableDamageDataRenderer.h.
Definition at line 54 of file CableDamageDataRenderer.h.
Definition at line 54 of file CableDamageDataRenderer.h.
typedef agx::observer_ptr< const CableDamageRenderer > agxOSG::CableDamageRendererConstObserver |
Definition at line 36 of file CableDamageRenderer.h.
typedef agx::ref_ptr< const CableDamageRenderer > agxOSG::CableDamageRendererConstRef |
Definition at line 36 of file CableDamageRenderer.h.
Definition at line 36 of file CableDamageRenderer.h.
Definition at line 36 of file CableDamageRenderer.h.
typedef osgGA::MatrixManipulator agxOSG::CameraManipulatorType |
Definition at line 154 of file ExampleApplication.h.
typedef agx::observer_ptr< const ClipPlane > agxOSG::ClipPlaneConstObserver |
Definition at line 35 of file ClipPlane.h.
typedef agx::ref_ptr< const ClipPlane > agxOSG::ClipPlaneConstRef |
Definition at line 35 of file ClipPlane.h.
typedef agx::observer_ptr< ClipPlane > agxOSG::ClipPlaneObserver |
Definition at line 35 of file ClipPlane.h.
Definition at line 36 of file ClipPlane.h.
typedef agx::VectorPOD< ClipPlane *> agxOSG::ClipPlanePtrVector |
Definition at line 36 of file ClipPlane.h.
typedef agx::ref_ptr< ClipPlane > agxOSG::ClipPlaneRef |
Definition at line 35 of file ClipPlane.h.
Definition at line 36 of file ClipPlane.h.
typedef osg::ref_ptr< CylinderGeometryShader > agxOSG::CylinderGeometryShaderRef |
Definition at line 106 of file CylinderGeometryShader.h.
typedef agx::observer_ptr< const ExampleApplication > agxOSG::ExampleApplicationConstObserver |
Definition at line 315 of file ExampleApplication.h.
typedef agx::ref_ptr< const ExampleApplication > agxOSG::ExampleApplicationConstRef |
Definition at line 315 of file ExampleApplication.h.
typedef agx::observer_ptr< const ExampleApplicationListener > agxOSG::ExampleApplicationListenerConstObserver |
Definition at line 303 of file ExampleApplication.h.
Definition at line 303 of file ExampleApplication.h.
Definition at line 303 of file ExampleApplication.h.
Definition at line 303 of file ExampleApplication.h.
Definition at line 315 of file ExampleApplication.h.
Definition at line 315 of file ExampleApplication.h.
typedef agx::observer_ptr< const ExternalProcess > agxOSG::ExternalProcessConstObserver |
Definition at line 36 of file ExternalProcess.h.
typedef agx::ref_ptr< const ExternalProcess > agxOSG::ExternalProcessConstRef |
Definition at line 36 of file ExternalProcess.h.
Definition at line 36 of file ExternalProcess.h.
Definition at line 36 of file ExternalProcess.h.
typedef agx::observer_ptr< const FrameTrajectoryDrawable > agxOSG::FrameTrajectoryDrawableConstObserver |
Definition at line 33 of file FrameTrajectoryDrawable.h.
typedef agx::ref_ptr< const FrameTrajectoryDrawable > agxOSG::FrameTrajectoryDrawableConstRef |
Definition at line 33 of file FrameTrajectoryDrawable.h.
Definition at line 33 of file FrameTrajectoryDrawable.h.
Definition at line 33 of file FrameTrajectoryDrawable.h.
typedef agx::observer_ptr< const GatherAvgPressure > agxOSG::GatherAvgPressureConstObserver |
Definition at line 93 of file PressureToColorConverter.h.
typedef agx::ref_ptr< const GatherAvgPressure > agxOSG::GatherAvgPressureConstRef |
Definition at line 93 of file PressureToColorConverter.h.
Definition at line 93 of file PressureToColorConverter.h.
Definition at line 93 of file PressureToColorConverter.h.
typedef agx::observer_ptr< const GatherMaxPressure > agxOSG::GatherMaxPressureConstObserver |
Definition at line 72 of file PressureToColorConverter.h.
typedef agx::ref_ptr< const GatherMaxPressure > agxOSG::GatherMaxPressureConstRef |
Definition at line 72 of file PressureToColorConverter.h.
Definition at line 72 of file PressureToColorConverter.h.
Definition at line 72 of file PressureToColorConverter.h.
typedef agx::observer_ptr< const GranularMergedBodyDrawable > agxOSG::GranularMergedBodyDrawableConstObserver |
Definition at line 35 of file GranularMergedBodyDrawable.h.
Definition at line 35 of file GranularMergedBodyDrawable.h.
Definition at line 35 of file GranularMergedBodyDrawable.h.
Definition at line 35 of file GranularMergedBodyDrawable.h.
typedef agx::observer_ptr< const GranularMergedBodyDrawableSprites > agxOSG::GranularMergedBodyDrawableSpritesConstObserver |
Definition at line 33 of file GranularMergedBodyDrawableSprites.h.
typedef agx::ref_ptr< const GranularMergedBodyDrawableSprites > agxOSG::GranularMergedBodyDrawableSpritesConstRef |
Definition at line 33 of file GranularMergedBodyDrawableSprites.h.
typedef agx::observer_ptr< GranularMergedBodyDrawableSprites > agxOSG::GranularMergedBodyDrawableSpritesObserver |
Definition at line 33 of file GranularMergedBodyDrawableSprites.h.
typedef agx::ref_ptr< GranularMergedBodyDrawableSprites > agxOSG::GranularMergedBodyDrawableSpritesRef |
Definition at line 33 of file GranularMergedBodyDrawableSprites.h.
typedef agx::observer_ptr< const GraphRenderer > agxOSG::GraphRendererConstObserver |
Definition at line 35 of file GraphRenderer.h.
typedef agx::ref_ptr< const GraphRenderer > agxOSG::GraphRendererConstRef |
Definition at line 35 of file GraphRenderer.h.
Definition at line 35 of file GraphRenderer.h.
typedef agx::ref_ptr< GraphRenderer > agxOSG::GraphRendererRef |
Definition at line 35 of file GraphRenderer.h.
Definition at line 60 of file agxOSG/GuiEventListener.h.
typedef agx::observer_ptr< const HeightField > agxOSG::HeightFieldConstObserver |
Definition at line 33 of file agxOSG/HeightField.h.
typedef agx::ref_ptr< const HeightField > agxOSG::HeightFieldConstRef |
Definition at line 33 of file agxOSG/HeightField.h.
Definition at line 33 of file agxOSG/HeightField.h.
typedef agx::ref_ptr< HeightField > agxOSG::HeightFieldRef |
Definition at line 33 of file agxOSG/HeightField.h.
typedef agx::observer_ptr< const HudTextManager > agxOSG::HudTextManagerConstObserver |
Definition at line 30 of file HudTextManager.h.
typedef agx::ref_ptr< const HudTextManager > agxOSG::HudTextManagerConstRef |
Definition at line 30 of file HudTextManager.h.
Definition at line 30 of file HudTextManager.h.
typedef agx::ref_ptr< HudTextManager > agxOSG::HudTextManagerRef |
Definition at line 30 of file HudTextManager.h.
typedef agx::observer_ptr< const ImageCaptureBase > agxOSG::ImageCaptureBaseConstObserver |
Definition at line 40 of file ImageCapture.h.
typedef agx::ref_ptr< const ImageCaptureBase > agxOSG::ImageCaptureBaseConstRef |
Definition at line 40 of file ImageCapture.h.
Definition at line 40 of file ImageCapture.h.
Definition at line 40 of file ImageCapture.h.
typedef agx::observer_ptr< const ImageCapture > agxOSG::ImageCaptureConstObserver |
Definition at line 128 of file ImageCapture.h.
typedef agx::ref_ptr< const ImageCapture > agxOSG::ImageCaptureConstRef |
Definition at line 128 of file ImageCapture.h.
Definition at line 128 of file ImageCapture.h.
typedef agx::ref_ptr< ImageCapture > agxOSG::ImageCaptureRef |
Definition at line 128 of file ImageCapture.h.
typedef agx::Vector< PanelRef > agxOSG::PanelContainer |
Definition at line 69 of file agxOSG/PickHandler.h.
typedef osg::ref_ptr< Panel > agxOSG::PanelRef |
Definition at line 67 of file agxOSG/PickHandler.h.
typedef agx::observer_ptr< const PickHandler > agxOSG::PickHandlerConstObserver |
Definition at line 74 of file agxOSG/PickHandler.h.
typedef agx::ref_ptr< const PickHandler > agxOSG::PickHandlerConstRef |
Definition at line 74 of file agxOSG/PickHandler.h.
Definition at line 74 of file agxOSG/PickHandler.h.
typedef agx::ref_ptr< PickHandler > agxOSG::PickHandlerRef |
Definition at line 74 of file agxOSG/PickHandler.h.
typedef osg::ref_ptr<PointSpriteDrawable> agxOSG::PointSpriteDrawableRef |
Definition at line 86 of file PointSpriteDrawable.h.
typedef agx::observer_ptr< const PressureAtlas > agxOSG::PressureAtlasConstObserver |
Definition at line 35 of file PressureAtlas.h.
typedef agx::ref_ptr< const PressureAtlas > agxOSG::PressureAtlasConstRef |
Definition at line 35 of file PressureAtlas.h.
Definition at line 47 of file PressureAtlasManager.h.
typedef agx::ref_ptr< const PressureAtlasManager > agxOSG::PressureAtlasManagerConstRef |
Definition at line 47 of file PressureAtlasManager.h.
Definition at line 47 of file PressureAtlasManager.h.
Definition at line 47 of file PressureAtlasManager.h.
Definition at line 35 of file PressureAtlas.h.
typedef agx::ref_ptr< PressureAtlas > agxOSG::PressureAtlasRef |
Definition at line 35 of file PressureAtlas.h.
Definition at line 47 of file agxOSG/PressureFieldRenderer.h.
typedef agx::ref_ptr< const PressureFieldRenderer > agxOSG::PressureFieldRendererConstRef |
Definition at line 47 of file agxOSG/PressureFieldRenderer.h.
Definition at line 47 of file agxOSG/PressureFieldRenderer.h.
Definition at line 47 of file agxOSG/PressureFieldRenderer.h.
Definition at line 34 of file PressureFromContacts.h.
typedef agx::ref_ptr< const PressureFromContacts > agxOSG::PressureFromContactsConstRef |
Definition at line 34 of file PressureFromContacts.h.
Definition at line 34 of file PressureFromContacts.h.
Definition at line 34 of file PressureFromContacts.h.
typedef agx::observer_ptr< const PressureGenerator > agxOSG::PressureGeneratorConstObserver |
Definition at line 28 of file PressureGenerator.h.
typedef agx::ref_ptr< const PressureGenerator > agxOSG::PressureGeneratorConstRef |
Definition at line 28 of file PressureGenerator.h.
Definition at line 28 of file PressureGenerator.h.
Definition at line 29 of file PressureGenerator.h.
Definition at line 29 of file PressureGenerator.h.
Definition at line 28 of file PressureGenerator.h.
Definition at line 29 of file PressureGenerator.h.
typedef agx::observer_ptr< const PressureRenderer > agxOSG::PressureRendererConstObserver |
Definition at line 46 of file PressureRenderer.h.
typedef agx::ref_ptr< const PressureRenderer > agxOSG::PressureRendererConstRef |
Definition at line 46 of file PressureRenderer.h.
Definition at line 46 of file PressureRenderer.h.
Definition at line 46 of file PressureRenderer.h.
typedef agx::observer_ptr< const PressureToColorConverter > agxOSG::PressureToColorConverterConstObserver |
Definition at line 35 of file PressureToColorConverter.h.
typedef agx::ref_ptr< const PressureToColorConverter > agxOSG::PressureToColorConverterConstRef |
Definition at line 35 of file PressureToColorConverter.h.
Definition at line 35 of file PressureToColorConverter.h.
typedef agx::Vector< PressureToColorConverterObserver> agxOSG::PressureToColorConverterObserverVector |
Definition at line 36 of file PressureToColorConverter.h.
Definition at line 36 of file PressureToColorConverter.h.
Definition at line 35 of file PressureToColorConverter.h.
Definition at line 36 of file PressureToColorConverter.h.
typedef agx::observer_ptr< const PressureToRgbaConverter > agxOSG::PressureToRgbaConverterConstObserver |
Definition at line 56 of file PressureToColorConverter.h.
typedef agx::ref_ptr< const PressureToRgbaConverter > agxOSG::PressureToRgbaConverterConstRef |
Definition at line 56 of file PressureToColorConverter.h.
Definition at line 56 of file PressureToColorConverter.h.
Definition at line 56 of file PressureToColorConverter.h.
typedef agx::observer_ptr< const RenderProxyFactory > agxOSG::RenderProxyFactoryConstObserver |
Definition at line 61 of file agxOSG/RenderProxy.h.
typedef agx::ref_ptr< const RenderProxyFactory > agxOSG::RenderProxyFactoryConstRef |
Definition at line 61 of file agxOSG/RenderProxy.h.
Definition at line 61 of file agxOSG/RenderProxy.h.
Definition at line 61 of file agxOSG/RenderProxy.h.
typedef agx::observer_ptr< const RenderTarget > agxOSG::RenderTargetConstObserver |
Definition at line 34 of file RenderTarget.h.
typedef agx::ref_ptr< const RenderTarget > agxOSG::RenderTargetConstRef |
Definition at line 34 of file RenderTarget.h.
Definition at line 34 of file RenderTarget.h.
Definition at line 35 of file RenderTarget.h.
typedef agx::VectorPOD< RenderTarget *> agxOSG::RenderTargetPtrVector |
Definition at line 35 of file RenderTarget.h.
typedef agx::ref_ptr< RenderTarget > agxOSG::RenderTargetRef |
Definition at line 34 of file RenderTarget.h.
Definition at line 35 of file RenderTarget.h.
typedef agx::observer_ptr< const RenderToImage > agxOSG::RenderToImageConstObserver |
Definition at line 28 of file RenderToImage.h.
typedef agx::ref_ptr< const RenderToImage > agxOSG::RenderToImageConstRef |
Definition at line 28 of file RenderToImage.h.
Definition at line 28 of file RenderToImage.h.
Definition at line 29 of file RenderToImage.h.
Definition at line 29 of file RenderToImage.h.
typedef agx::ref_ptr< RenderToImage > agxOSG::RenderToImageRef |
Definition at line 28 of file RenderToImage.h.
Definition at line 29 of file RenderToImage.h.
typedef agx::observer_ptr< const RenderToTexture > agxOSG::RenderToTextureConstObserver |
Definition at line 26 of file RenderToTexture.h.
typedef agx::ref_ptr< const RenderToTexture > agxOSG::RenderToTextureConstRef |
Definition at line 26 of file RenderToTexture.h.
Definition at line 26 of file RenderToTexture.h.
Definition at line 27 of file RenderToTexture.h.
Definition at line 27 of file RenderToTexture.h.
Definition at line 26 of file RenderToTexture.h.
Definition at line 27 of file RenderToTexture.h.
Definition at line 28 of file RigidBodyRenderCache.h.
typedef agx::ref_ptr< const RigidBodyRenderCache > agxOSG::RigidBodyRenderCacheConstRef |
Definition at line 28 of file RigidBodyRenderCache.h.
Definition at line 28 of file RigidBodyRenderCache.h.
Definition at line 28 of file RigidBodyRenderCache.h.
typedef agx::observer_ptr< const RigidBodyTrajectoryDrawable > agxOSG::RigidBodyTrajectoryDrawableConstObserver |
Definition at line 34 of file RigidBodyTrajectoryDrawable.h.
typedef agx::ref_ptr< const RigidBodyTrajectoryDrawable > agxOSG::RigidBodyTrajectoryDrawableConstRef |
Definition at line 34 of file RigidBodyTrajectoryDrawable.h.
typedef agx::observer_ptr< RigidBodyTrajectoryDrawable > agxOSG::RigidBodyTrajectoryDrawableObserver |
Definition at line 34 of file RigidBodyTrajectoryDrawable.h.
Definition at line 34 of file RigidBodyTrajectoryDrawable.h.
Definition at line 90 of file RockGenerator.h.
typedef agx::observer_ptr< const ScalarColorMap > agxOSG::ScalarColorMapConstObserver |
Definition at line 31 of file ScalarColorMap.h.
typedef agx::ref_ptr< const ScalarColorMap > agxOSG::ScalarColorMapConstRef |
Definition at line 31 of file ScalarColorMap.h.
Definition at line 31 of file ScalarColorMap.h.
typedef agx::ref_ptr< ScalarColorMap > agxOSG::ScalarColorMapRef |
Definition at line 31 of file ScalarColorMap.h.
typedef agx::observer_ptr< const SimpleDepthBufferLidar > agxOSG::SimpleDepthBufferLidarConstObserver |
Definition at line 27 of file SimpleDepthBufferLidar.h.
typedef agx::ref_ptr< const SimpleDepthBufferLidar > agxOSG::SimpleDepthBufferLidarConstRef |
Definition at line 27 of file SimpleDepthBufferLidar.h.
Definition at line 27 of file SimpleDepthBufferLidar.h.
Definition at line 27 of file SimpleDepthBufferLidar.h.
Definition at line 46 of file agxOSG/SimulationSerializer.h.
Definition at line 136 of file SplineRendererOld.h.
typedef agx::ref_ptr< SplineRenderer > agxOSG::SplineRendererRef |
Definition at line 221 of file SplineRenderer.h.
typedef osg::ref_ptr< SplineShader > agxOSG::SplineShaderRef |
Definition at line 123 of file SplineRenderer.h.
Definition at line 53 of file StatisticsRenderer.h.
Definition at line 41 of file TerrainVoxelRenderer.h.
typedef agx::ref_ptr< const TerrainVoxelRenderer > agxOSG::TerrainVoxelRendererConstRef |
Definition at line 41 of file TerrainVoxelRenderer.h.
Definition at line 41 of file TerrainVoxelRenderer.h.
Definition at line 41 of file TerrainVoxelRenderer.h.
typedef agx::ref_ptr< Tree > agxOSG::TreeRef |
Definition at line 90 of file agxOSG/Tree.h.
typedef agx::ref_ptr< TreeRenderer > agxOSG::TreeRendererRef |
Definition at line 54 of file agxOSG/Tree.h.
typedef osg::TriangleFunctor<TriangleExtractOperatorBase> agxOSG::TriangleExtractOperator |
TriangleExtractOperator is the method inherit to create a operator that will be executed per triangle.
Definition at line 138 of file TriangleExtractor.h.
typedef agx::observer_ptr< const VideoFFMPEGPipeCapture > agxOSG::VideoFFMPEGPipeCaptureConstObserver |
Definition at line 34 of file VideoFFMPEGPipeCapture.h.
typedef agx::ref_ptr< const VideoFFMPEGPipeCapture > agxOSG::VideoFFMPEGPipeCaptureConstRef |
Definition at line 34 of file VideoFFMPEGPipeCapture.h.
Definition at line 34 of file VideoFFMPEGPipeCapture.h.
Definition at line 34 of file VideoFFMPEGPipeCapture.h.
Definition at line 45 of file WireRendererOld.h.
typedef agx::ref_ptr< WireRenderer > agxOSG::WireRendererRef |
Definition at line 53 of file WireRenderer.h.
enum agxOSG::TextureMode |
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().
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().
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.
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 |
References addText().
Referenced by addText().
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.
resU | The resolution of the grid (in number of lines) in x. |
resV | The resolution of the grid (in number of lines) in y. |
resW | The resolution of the grid (in number of lines) in z. |
origin | The origin of the grid in world coordinates |
endPointX | The end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x. |
endPointY | The end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y. |
endPointZ | The end point of the grid in z coordinates. The distance between this point and the origin gives the length of the grid in z. |
width | The line width of the grid, this is in pixel size. |
The | created geode with the grid. This may be null if the method failed. Remember to add this geometry to a node. |
References create3DGrid().
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.
resU | The resolution of the grid (in number of lines) in x. |
resV | The resolution of the grid (in number of lines) in y. |
resW | The resolution of the grid (in number of lines) in z. |
origin | The origin of the grid in world coordinates |
endPointX | The end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x. |
endPointY | The end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y. |
endPointZ | The end point of the grid in z coordinates. The distance between this point and the origin gives the length of the grid in z. |
width | The line width of the grid, this is in pixel size. |
the | osg::Geometry* containing the grid. Remember to add this geometry to a node. |
References create3DGrid().
Referenced by create3DGrid().
AGXOSG_EXPORT osg::MatrixTransform * agxOSG::createAxes | ( | agx::AffineMatrix4x4 | relativeTransform, |
osg::Group * | root, | ||
float | scale = 1.f , |
||
const agx::Vec4f & | color = agx::Vec4f() |
||
) |
References createAxes().
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().
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().
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().
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().
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().
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) |
||
) |
References createFrameTrajectoryDrawable().
Referenced by createFrameTrajectoryDrawable().
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.
resU | The resolution of the grid (in number of lines) in x. |
resV | The resolution of the grid (in number of lines) in y. |
origin | The origin of the grid in world coordinates |
endPointX | The end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x. |
endPointY | The end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y. |
root | The root that the grid should be added to. Non-zero. |
The | geode which is part of root now. |
References createGrid().
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.
resU | The resolution of the grid (in number of lines) in x. |
resV | The resolution of the grid (in number of lines) in y. |
origin | The origin of the grid in world coordinates |
endPointX | The end point of the grid in x coordinates. The distance between this point and the origin gives the length of the grid in x. |
endPointY | The end point of the grid in y coordinates. The distance between this point and the origin gives the length of the grid in y. |
wireFrameMode | unused |
the | osg::Geometry* containing the grid. |
References createGrid().
Referenced by createGrid().
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.
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 |
The | created 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().
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().
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.
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().
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.
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 |
The | created 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().
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.
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().
AGXOSG_EXPORT osg::Geode * agxOSG::createSkyBox | ( | agx::Vector< osg::ref_ptr< osg::Image > > & | images, |
float | size | ||
) |
AGXOSG_EXPORT osg::Geode * agxOSG::createSkySphere | ( | const std::string & | name, |
agx::Vector< osg::ref_ptr< osg::Image > > & | images, | ||
float | radius | ||
) |
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.
text | - the text to render |
relPosition | - relative position to the geometry |
color | - color of the text |
size | - size of the text |
References createText().
Referenced by createText().
AGXOSG_EXPORT osg::Texture2D * agxOSG::createTexture | ( | const std::string & | filename | ) |
Create a Texture2D object that can be assigned to nodes.
filename | - Path to the image file |
References createTexture().
Referenced by createTexture().
AGXOSG_EXPORT osg::TextureCubeMap * agxOSG::createTextureCubeMap | ( | agx::Vector< osg::ref_ptr< osg::Image > > & | images | ) |
Internal functions for creating texture cube maps.
Referenced by loadCubeMapImages().
AGXOSG_EXPORT osg::TextureCubeMap * agxOSG::createTextureCubeMap | ( | const std::string & | imagename, |
const std::string & | filetype | ||
) |
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().
AGXOSG_EXPORT osg::Group * agxOSG::createVisual | ( | agx::Emitter * | emitter, |
osg::Group * | root | ||
) |
References createVisual().
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().
AGXOSG_EXPORT osg::Geode * agxOSG::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.
References createVisual().
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().
AGXOSG_EXPORT osg::Group * agxOSG::createVisual | ( | agx::RigidBodyEmitter * | emitter, |
osg::Group * | root | ||
) |
References createVisual().
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().
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().
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.
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().
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().
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.
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 |
References createVisualUpdater().
Referenced by createVisualUpdater().
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.
References createVisualWithGeometryConnection().
Referenced by createVisualWithGeometryConnection().
AGXOSG_EXPORT agxOSG::FrameTrajectoryDrawable * agxOSG::findFrameTrajectoryDrawable | ( | osg::Group * | root | ) |
References findFrameTrajectoryDrawable().
Referenced by findFrameTrajectoryDrawable().
AGXOSG_EXPORT GeometryNode * agxOSG::findGeometryNode | ( | const agxCollide::Geometry * | geometry, |
osg::Group * | rootNode | ||
) |
Finds the geometry node associated to a geometry.
References findGeometryNode().
Referenced by findGeometryNode().
AGXOSG_EXPORT agxOSG::ParticleSystemDrawable * agxOSG::findParticleSystemDrawable | ( | osg::Group * | root | ) |
References findParticleSystemDrawable().
Referenced by findParticleSystemDrawable().
AGXOSG_EXPORT agxOSG::RigidBodySystemDrawable * agxOSG::findRigidBodySystemDrawable | ( | osg::Group * | root | ) |
References findRigidBodySystemDrawable().
Referenced by findRigidBodySystemDrawable().
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.
geometry | - geometry with agxOSG::GeometryNode and text |
root | - root node |
index | - index of the text object to find (default 0) |
References findText().
Referenced by findText().
AGXOSG_EXPORT bool agxOSG::forceWireFrameModeOn | ( | osg::Node * | node | ) |
References forceWireFrameModeOn().
Referenced by forceWireFrameModeOn().
AGXOSG_EXPORT void agxOSG::GeometryNode_reference | ( | agxOSG::GeometryNode * | node | ) |
AGXOSG_EXPORT void agxOSG::GeometryNode_unreference | ( | agxOSG::GeometryNode * | node | ) |
AGXOSG_EXPORT bool agxOSG::getEnableOutline | ( | osg::Node * | node | ) |
References getEnableOutline().
Referenced by getEnableOutline().
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.
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().
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.
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().
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().
unsigned int AGXOSG_EXPORT agxOSG::makeRasterFont | ( | void | ) |
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:
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
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. |
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).
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. |
References readNodeFile().
Referenced by readNodeFile().
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.
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. |
References readNodeFile().
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.
geometry | - subject geometry |
root | - root node |
index | - index of the text object to remove |
References removeText().
Referenced by removeText().
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().
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().
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().
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.
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]
imageType | - The file type of the cubemap textures. default is ".dds" |
References setCubeMapTexture().
Referenced by setCubeMapTexture().
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().
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().
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().
AGXOSG_EXPORT void agxOSG::setEnableLight | ( | bool | enable, |
int | lightNum, | ||
osg::Node * | node | ||
) |
References setEnableLight().
Referenced by setEnableLight().
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().
AGXOSG_EXPORT bool agxOSG::setEnableWireFrameMode | ( | osg::Node * | node, |
bool | flag | ||
) |
References setEnableWireFrameMode().
Referenced by setEnableWireFrameMode().
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().
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().
AGXOSG_EXPORT void agxOSG::setShininess | ( | osg::Node * | node, |
float | shininess | ||
) |
Set the shininess exponent for the Phong specular model.
References setShininess().
Referenced by setShininess().
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().
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.
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 |
References setTexture().
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.
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 |
References setTexture().
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.
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 |
References setTexture().
Referenced by setTexture().
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.
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 |
References setTexture().
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.
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 |
References setTexture().
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.
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 |
References setTexture().
void agxOSG::setUniform | ( | osg::Node * | node, |
const std::string & | name, | ||
T | value | ||
) |
AGXOSG_EXPORT void agxOSG::Text_reference | ( | agxOSG::Text * | node | ) |
AGXOSG_EXPORT void agxOSG::Text_unreference | ( | agxOSG::Text * | node | ) |
AGXOSG_EXPORT bool agxOSG::toggleWireFrameMode | ( | osg::Node * | node | ) |
References toggleWireFrameMode().
Referenced by toggleWireFrameMode().
AGXOSG_EXPORT void agxOSG::Transform_reference | ( | agxOSG::Transform * | node | ) |
AGXOSG_EXPORT void agxOSG::Transform_unreference | ( | agxOSG::Transform * | node | ) |
|
extern |