View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

tubes.h
Go to the documentation of this file.
1#ifndef TUBES_H
2#define TUBES_H
3
4
5#include "coordswradius.h"
6#include <vistle/util/enum.h>
7
8namespace vistle {
9
12
13public:
15
16 DEFINE_ENUM_WITH_STRING_CONVERSIONS(CapStyle, (Open)(Flat)(Round)(Arrow))
17
18 Tubes(const Index numTubes, const Index numCoords, const Meta &meta = Meta());
19
20 Index getNumTubes() const;
21 shm<Index>::array &components() { return *d()->components; }
22 const shm<Index>::array &components() const { return *d()->components; }
23
24 CapStyle startStyle() const;
25 CapStyle jointStyle() const;
26 CapStyle endStyle() const;
27
28 void setCapStyles(CapStyle start, CapStyle joint, CapStyle end);
29
33 style; // 0: CapStyle for start, 1: CapStyle for connections within, 2: CapStyle for end of each component
34
35 Data(const Index numTubes = 0, const Index numCoords = 0, const std::string &name = "", const Meta &meta = Meta());
36 Data(const Vec<Scalar, 3>::Data &o, const std::string &n);
37 static Data *create(const Index numTubes = 0, const Index numCoords = 0, const Meta &meta = Meta());
38
40};
41
42} // namespace vistle
43#endif
Definition: coordswradius.h:9
Definition: objectmeta.h:16
Definition: tubes.h:10
V_DATA_BEGIN(Tubes)
V_DATA_END(Tubes)
Data(const Vec< Scalar, 3 >::Data &o, const std::string &n)
DEFINE_ENUM_WITH_STRING_CONVERSIONS(CapStyle,(Open)(Flat)(Round)(Arrow)) Tubes(const Index numTubes
CoordsWithRadius Base
Definition: tubes.h:14
const shm< Index >::array & components() const
Definition: tubes.h:22
ShmVector< Index > components
Definition: tubes.h:31
Data(const Index numTubes=0, const Index numCoords=0, const std::string &name="", const Meta &meta=Meta())
ShmVector< unsigned char > style
Definition: tubes.h:33
static Data * create(const Index numTubes=0, const Index numCoords=0, const Meta &meta=Meta())
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
uint32_t Index
Definition: index.h:13
#define V_OBJECT(ObjType)
declare a new Object type
Definition: object.h:381
Definition: object.h:233
Definition: shm.h:94