View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

placeholder.h
Go to the documentation of this file.
1#ifndef PLACEHOLDER_H
2#define PLACEHOLDER_H
3
4#include "shmname.h"
5#include "object.h"
6#include "archives_config.h"
7#include "shm_obj_ref.h"
8#include "export.h"
9
10namespace vistle {
11
14
15public:
16 typedef Object Base;
17
18 PlaceHolder(const std::string &originalName, const Meta &originalMeta, const Object::Type originalType);
20
21 void setReal(Object::const_ptr g);
23 std::string originalName() const;
25 const Meta &originalMeta() const;
26
27 void setGeometry(Object::const_ptr geo);
29 void setNormals(Object::const_ptr norm);
31 void setTexture(Object::const_ptr tex);
33
36
37 Data(const std::string &name, const std::string &originalName, const Meta &m, Object::Type originalType);
39 static Data *create(const std::string &name = "", const std::string &originalName = "",
40 const Meta &originalMeta = Meta(), const Object::Type originalType = Object::UNKNOWN);
41
42private:
43 shm_name_t originalName;
44 Meta originalMeta;
45 Object::Type originalType;
46
47 shm_obj_ref<PlaceHolder> geometry, normals, texture;
49};
50
51} // namespace vistle
52#endif
Definition: objectmeta.h:16
Definition: object.h:58
std::shared_ptr< const Object > const_ptr
Definition: object.h:68
Type
Definition: object.h:84
@ UNKNOWN
Definition: object.h:89
Definition: placeholder.h:12
static Data * create(const std::string &name="", const std::string &originalName="", const Meta &originalMeta=Meta(), const Object::Type originalType=Object::UNKNOWN)
Object Base
Definition: placeholder.h:16
Object::Type originalType() const
Object::const_ptr real() const
PlaceHolder::const_ptr texture() const
PlaceHolder::const_ptr geometry() const
Data(const std::string &name, const std::string &originalName, const Meta &m, Object::Type originalType)
std::string originalName() const
V_DATA_BEGIN(PlaceHolder)
const Meta & originalMeta() const
shm_obj_ref< Object > real
Definition: placeholder.h:35
PlaceHolder::const_ptr normals() const
Definition: shm_obj_ref.h:15
#define V_COREEXPORT
Definition: export.h:9
Definition: allobjects.cpp:30
#define V_DATA_END(ObjType)
Definition: object.h:481
#define V_OBJECT(ObjType)
declare a new Object type
Definition: object.h:381
Definition: object.h:233
Definition: shmname.h:11