Momentum Scripting v1
Loading...
Searching...
No Matches
DataBufferAccessor.h
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material without having a written signed agreement with Algoryx Simulation AB.
9
10Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11from using this software, unless otherwise stated in written agreements with
12Algoryx Simulation AB.
13*/
14#ifndef MOMENTUM_DATABUFFERACCESSOR_H
15#define MOMENTUM_DATABUFFERACCESSOR_H
16
17#include "momentum_namespace.h"
18#include "momentum_export.h"
19#include "macros.h"
20
21#include <string>
22
23#ifndef SWIG
25namespace agxSDK
26{
27 class Simulation;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
49 class MOMENTUM_EXPORT DataBufferAccessor
50 {
51 public:
52
53#ifndef SWIG
55
60#endif
61
67 unsigned int getParticleIdFromIndex( unsigned int arrayIndex ) const;
68
82 bool commitParticleBuffer( const std::string& bufferName );
83 };
84}
85
86
87#endif
A class that is used as an interface to access low level buffer data for read/write in Momentum objec...
Definition: DataBufferAccessor.h:50
bool commitParticleBuffer(const std::string &bufferName)
Updates the particle data buffer according to specified buffer name.
unsigned int getParticleIdFromIndex(unsigned int arrayIndex) const
Get particle id from low level array index.
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29
Definition: SceneGraph.h:29