View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

coordswradius.h
Go to the documentation of this file.
1#ifndef COORDSWITHRADIUS_H
2#define COORDSWITHRADIUS_H
3
4
5#include "coords.h"
6
7namespace vistle {
8
11
12public:
13 typedef Coords Base;
14
15 CoordsWithRadius(const Index numCoords, const Meta &meta = Meta());
16
17 shm<Scalar>::array &r() { return *(d()->r); }
18 const Scalar *r() const { return m_r; }
19 void resetArrays() override;
20 void setSize(const Index size) override;
21
22private:
23 mutable const Scalar *m_r;
24
27
28 Data(const Index numCoords = 0, Type id = UNKNOWN, const std::string &name = "", const Meta &meta = Meta());
29 Data(const Vec<Scalar, 3>::Data &o, const std::string &n, Type id);
30 static Data *create(const std::string &name = "", Type id = UNKNOWN, const Index numCoords = 0,
31 const Meta &meta = Meta());
32
34};
35
36V_OBJECT_DECL(CoordsWithRadius)
37
38//ARCHIVE_ASSUME_ABSTRACT(CoordsWithRadius)
39
40} // namespace vistle
41#endif
Definition: coordswradius.h:9
const Scalar * r() const
Definition: coordswradius.h:18
shm< Scalar >::array & r()
Definition: coordswradius.h:17
Coords Base
Definition: coordswradius.h:13
Definition: coords.h:15
Definition: objectmeta.h:16
Definition: vec.h:13
Definition: shm_reference.h:15
Definition: shm_array.h:19
#define V_COREEXPORT
Definition: export.h:9
Definition: allobjects.cpp:30
float Scalar
Definition: scalar.h:14
uint32_t Index
Definition: index.h:13
#define V_DATA_BEGIN(ObjType)
Definition: object.h:474
#define V_OBJECT_DECL(ObjType)
Definition: object.h:525
#define V_DATA_END(ObjType)
Definition: object.h:481
#define V_OBJECT(ObjType)
declare a new Object type
Definition: object.h:381