View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Classes | Public Types | Public Member Functions | List of all members
vistle::Vec< T, Dim > Class Template Reference

#include <core/vec.h>

Inheritance diagram for vistle::Vec< T, Dim >:
Inheritance graph
[legend]
Collaboration diagram for vistle::Vec< T, Dim >:
Collaboration graph
[legend]

Classes

struct  Data
 

Public Types

typedef DataBase Base
 
typedef shm< T >::array array
 
typedef T Scalar
 
typedef VistleVector< Scalar, Dim > Vector
 
- Public Types inherited from vistle::DataBase
typedef Object Base
 
- Public Types inherited from vistle::Object
enum  InitializedFlags { Initialized }
 
enum  Type {
  COORD = -9 , COORDWRADIUS = -8 , DATABASE = -7 , UNKNOWN = -1 ,
  EMPTY = 1 , PLACEHOLDER = 11 , TEXTURE1D = 16 , POINTS = 18 ,
  SPHERES = 19 , LINES = 20 , TUBES = 21 , TRIANGLES = 22 ,
  POLYGONS = 23 , UNSTRUCTUREDGRID = 24 , UNIFORMGRID = 25 , RECTILINEARGRID = 26 ,
  STRUCTUREDGRID = 27 , QUADS = 28 , VERTEXOWNERLIST = 95 , CELLTREE1 = 96 ,
  CELLTREE2 = 97 , CELLTREE3 = 98 , NORMALS = 99 , VEC = 100
}
 
typedef std::shared_ptr< Objectptr
 
typedef std::shared_ptr< const Objectconst_ptr
 
typedef ObjectData Data
 

Public Member Functions

 Vec (const Index size, const Meta &meta=Meta())
 
Index getSize () override
 
Index getSize () const override
 
int dimension () const override
 
bool copyEntry (Index to, DataBase::const_ptr src, Index from) override
 
void setValue (Index idx, int component, const double &value) override
 
double value (Index idx, int c=0) const override
 
void resetArrays () override
 
void setSize (const Index size) override
 
void applyDimensionHint (Object::const_ptr grid) override
 
void setExact (bool exact) override
 
arrayx (int c=0)
 
arrayy ()
 
arrayz ()
 
arrayw ()
 
const T * x (int c=0) const
 
const T * y () const
 
const T * z () const
 
const T * w () const
 
void updateInternals () override
 
std::pair< Vector, VectorgetMinMax () const
 
- Public Member Functions inherited from vistle::DataBase
 DEFINE_ENUM_WITH_STRING_CONVERSIONS (Mapping,(Unspecified)(Vertex)(Element))
 
std::set< Object::const_ptrreferencedObjects () const override
 check whether all references have been resolved More...
 
Object::const_ptr grid () const
 
void setGrid (Object::const_ptr grid)
 
Mapping guessMapping (Object::const_ptr grid=Object::const_ptr()) const
 
Mapping mapping () const
 
void setMapping (Mapping m)
 
void copyAttributes (Object::const_ptr src, bool replace=true) override
 
- Public Member Functions inherited from vistle::Object
template<class Interface >
const Interface * getInterface () const
 
std::shared_ptr< const Objectobject () const override
 
virtual ~Object ()
 
bool operator== (const Object &other) const
 
bool operator!= (const Object &other) const
 
bool isComplete () const
 
Object::ptr clone () const
 
virtual Object::ptr cloneInternal () const =0
 
Object::ptr cloneType () const
 
virtual Object::ptr cloneTypeInternal () const =0
 
virtual void refresh () const
 refresh cached pointers from shm More...
 
virtual bool check () const
 
virtual bool isEmpty () const
 
virtual bool isEmpty ()
 
shm_handle_t getHandle () const
 
Type getType () const
 
std::string getName () const
 
int getBlock () const
 
int getNumBlocks () const
 
double getRealTime () const
 
int getTimestep () const
 
int getNumTimesteps () const
 
int getIteration () const
 
int getExecutionCounter () const
 
int getCreator () const
 
Matrix4 getTransform () const
 
void setBlock (const int block)
 
void setNumBlocks (const int num)
 
void setRealTime (double time)
 
void setTimestep (const int timestep)
 
void setNumTimesteps (const int num)
 
void setIteration (const int num)
 
void setExecutionCounter (const int count)
 
void setCreator (const int id)
 
void setTransform (const Matrix4 &transform)
 
const Metameta () const
 
void setMeta (const Meta &meta)
 
void addAttribute (const std::string &key, const std::string &value="")
 
void setAttributeList (const std::string &key, const std::vector< std::string > &values)
 
bool hasAttribute (const std::string &key) const
 
std::string getAttribute (const std::string &key) const
 
std::vector< std::string > getAttributes (const std::string &key) const
 
std::vector< std::string > getAttributeList () const
 
bool addAttachment (const std::string &key, Object::const_ptr att) const
 
bool hasAttachment (const std::string &key) const
 
void copyAttachments (Object::const_ptr src, bool replace=true)
 
Object::const_ptr getAttachment (const std::string &key) const
 
bool removeAttachment (const std::string &key) const
 
int ref () const
 
int unref () const
 
int refcount () const
 
template<class Archive >
void saveObject (Archive &ar) const
 
Datad () const
 

Additional Inherited Members

- Static Public Member Functions inherited from vistle::Object
static const char * toString (Type v)
 
static const char * typeName ()
 
static ObjectcreateEmpty (const std::string &name=std::string())
 
static std::shared_ptr< Objectas (std::shared_ptr< Object > ptr)
 
static std::shared_ptr< const Objectas (std::shared_ptr< const Object > ptr)
 
template<class Archive >
static ObjectloadObject (Archive &ar)
 
- Protected Member Functions inherited from vistle::Object
 Object (Data *data)
 
 Object ()
 
- Protected Member Functions inherited from vistle::ObjectInterfaceBase
virtual ~ObjectInterfaceBase ()
 
- Static Protected Member Functions inherited from vistle::Object
static void publish (const Data *d)
 
static Objectcreate (Data *)
 
- Protected Attributes inherited from vistle::Object
Datam_data
 

Member Typedef Documentation

◆ array

template<typename T , int Dim = 1>
typedef shm<T>::array vistle::Vec< T, Dim >::array

◆ Base

template<typename T , int Dim = 1>
typedef DataBase vistle::Vec< T, Dim >::Base

◆ Scalar

template<typename T , int Dim = 1>
typedef T vistle::Vec< T, Dim >::Scalar

◆ Vector

template<typename T , int Dim = 1>
typedef VistleVector<Scalar, Dim> vistle::Vec< T, Dim >::Vector

Constructor & Destructor Documentation

◆ Vec()

template<class T , int Dim>
vistle::Vec< T, Dim >::Vec ( const Index  size,
const Meta meta = Meta() 
)

Member Function Documentation

◆ applyDimensionHint()

template<class T , int Dim>
void vistle::Vec< T, Dim >::applyDimensionHint ( Object::const_ptr  grid)
overridevirtual

Reimplemented from vistle::DataBase.

◆ copyEntry()

template<class T , int Dim>
bool vistle::Vec< T, Dim >::copyEntry ( Index  to,
DataBase::const_ptr  src,
Index  from 
)
overridevirtual

Reimplemented from vistle::DataBase.

◆ dimension()

template<typename T , int Dim = 1>
int vistle::Vec< T, Dim >::dimension ( ) const
inlineoverridevirtual

Reimplemented from vistle::DataBase.

◆ getMinMax()

template<class T , int Dim>
std::pair< typename Vec< T, Dim >::Vector, typename Vec< T, Dim >::Vector > vistle::Vec< T, Dim >::getMinMax

◆ getSize() [1/2]

template<typename T , int Dim = 1>
Index vistle::Vec< T, Dim >::getSize ( ) const
inlineoverridevirtual

Reimplemented from vistle::DataBase.

◆ getSize() [2/2]

template<typename T , int Dim = 1>
Index vistle::Vec< T, Dim >::getSize ( )
inlineoverridevirtual

Reimplemented from vistle::DataBase.

◆ resetArrays()

template<class T , int Dim>
void vistle::Vec< T, Dim >::resetArrays
overridevirtual

Reimplemented from vistle::DataBase.

◆ setExact()

template<class T , int Dim>
void vistle::Vec< T, Dim >::setExact ( bool  exact)
overridevirtual

Reimplemented from vistle::DataBase.

◆ setSize()

template<class T , int Dim>
void vistle::Vec< T, Dim >::setSize ( const Index  size)
overridevirtual

Reimplemented from vistle::DataBase.

◆ setValue()

template<class T , int Dim>
void vistle::Vec< T, Dim >::setValue ( Index  idx,
int  component,
const double &  value 
)
overridevirtual

Reimplemented from vistle::DataBase.

◆ updateInternals()

template<class T , int Dim>
void vistle::Vec< T, Dim >::updateInternals
overridevirtual

Reimplemented from vistle::Object.

◆ value()

template<class T , int Dim>
double vistle::Vec< T, Dim >::value ( Index  idx,
int  c = 0 
) const
overridevirtual

Reimplemented from vistle::DataBase.

◆ w() [1/2]

template<typename T , int Dim = 1>
array & vistle::Vec< T, Dim >::w ( )
inline

◆ w() [2/2]

template<typename T , int Dim = 1>
const T * vistle::Vec< T, Dim >::w ( ) const
inline

◆ x() [1/2]

template<typename T , int Dim = 1>
array & vistle::Vec< T, Dim >::x ( int  c = 0)
inline

◆ x() [2/2]

template<typename T , int Dim = 1>
const T * vistle::Vec< T, Dim >::x ( int  c = 0) const
inline

◆ y() [1/2]

template<typename T , int Dim = 1>
array & vistle::Vec< T, Dim >::y ( )
inline

◆ y() [2/2]

template<typename T , int Dim = 1>
const T * vistle::Vec< T, Dim >::y ( ) const
inline

◆ z() [1/2]

template<typename T , int Dim = 1>
array & vistle::Vec< T, Dim >::z ( )
inline

◆ z() [2/2]

template<typename T , int Dim = 1>
const T * vistle::Vec< T, Dim >::z ( ) const
inline

The documentation for this class was generated from the following files: