View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Types | Public Member Functions | List of all members
vistle::RectilinearGrid Class Reference

#include <core/rectilineargrid.h>

Inheritance diagram for vistle::RectilinearGrid:
Inheritance graph
[legend]
Collaboration diagram for vistle::RectilinearGrid:
Collaboration graph
[legend]

Public Types

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 Types inherited from vistle::StructuredGridBase
enum  GhostLayerPosition { Bottom , Top }
 
typedef StructuredGridBase Class
 
typedef std::shared_ptr< Classptr
 
typedef std::shared_ptr< const Classconst_ptr
 
- Public Types inherited from vistle::GridInterface
enum  FindCellFlags { NoFlags = 0 , AcceptGhost = 1 , ForceCelltree = 2 , NoCelltree = 4 }
 

Public Member Functions

 RectilinearGrid (const Index numDivX, const Index numDivY, const Index numDivZ, const Meta &meta=Meta())
 
std::set< Object::const_ptrreferencedObjects () const override
 check whether all references have been resolved More...
 
Index getNumDivisions (int c) override
 
Index getNumDivisions (int c) const override
 
Index getNumGhostLayers (unsigned dim, GhostLayerPosition pos) override
 
Index getNumGhostLayers (unsigned dim, GhostLayerPosition pos) const override
 
Index getGlobalIndexOffset (int c) const override
 
void setGlobalIndexOffset (int c, Index offset) override
 
void setNumGhostLayers (unsigned dim, GhostLayerPosition pos, unsigned value) override
 
shm< Scalar >::array & coords (int c)
 
const Scalarcoords (int c) const
 
Index getNumVertices () override
 
Index getNumVertices () const override
 
std::pair< Vector, VectorgetBounds () const override
 
Normals::const_ptr normals () const override
 
void setNormals (Normals::const_ptr normals)
 
std::pair< Vector, VectorcellBounds (Index elem) const override
 
Index findCell (const Vector &point, Index hint=InvalidIndex, int flags=NoFlags) const override
 
bool inside (Index elem, const Vector &point) const override
 
Interpolator getInterpolator (Index elem, const Vector &point, DataBase::Mapping mapping=DataBase::Vertex, InterpolationMode mode=Linear) const override
 
Scalar exitDistance (Index elem, const Vector &point, const Vector &dir) const override
 
Vector getVertex (Index v) const override
 
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 void updateInternals ()
 
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
 
- Public Member Functions inherited from vistle::StructuredGridBase
virtual bool isGhostCell (Index elem) const override
 
virtual Index getNumElements () override
 
virtual Index getNumElements () const override
 
virtual Scalar cellDiameter (Index elem) const override
 
virtual Vector cellCenter (Index elem) const override
 
virtual std::vector< IndexgetNeighborElements (Index elem) const override
 
Index cellNumFaces (Index elem) const override
 
std::vector< IndexcellVertices (Index elem) const override
 
- Public Member Functions inherited from vistle::GridInterface
 DEFINE_ENUM_WITH_STRING_CONVERSIONS (InterpolationMode,(First)(Mean)(Nearest)(Linear))
 
Interpolator getInterpolator (const Vector &point, DataBase::Mapping mapping=DataBase::Vertex, InterpolationMode mode=Linear) 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)
 
- Static Public Member Functions inherited from vistle::StructuredGridBase
static std::shared_ptr< const Classas (std::shared_ptr< const Object > ptr)
 
static std::shared_ptr< Classas (std::shared_ptr< Object > ptr)
 
static int dimensionality (const Index dims[3])
 
static Index vertexIndex (const Index ix, const Index iy, const Index iz, const Index dims[3])
 
static Index vertexIndex (const Index i[3], const Index dims[3])
 
static std::array< Index, 3 > vertexCoordinates (Index v, const Index dims[3])
 
static Index cellIndex (const Index ix, const Index iy, const Index iz, const Index dims[3])
 
static Index cellIndex (const Index i[3], const Index dims[3])
 
static std::array< Index, 3 > cellCoordinates (Index el, const Index dims[3])
 
static std::array< Index, 8 > cellVertices (Index el, const Index dims[3])
 
- Static Public Attributes inherited from vistle::StructuredGridBase
static constexpr std::array< Index, 8 > HexahedronIndices [3]
 
- 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

◆ Base

Constructor & Destructor Documentation

◆ RectilinearGrid()

vistle::RectilinearGrid::RectilinearGrid ( const Index  numDivX,
const Index  numDivY,
const Index  numDivZ,
const Meta meta = Meta() 
)

Member Function Documentation

◆ cellBounds()

std::pair< Vector, Vector > vistle::RectilinearGrid::cellBounds ( Index  elem) const
overridevirtual

Implements vistle::GridInterface.

◆ coords() [1/2]

shm< Scalar >::array & vistle::RectilinearGrid::coords ( int  c)
inline

◆ coords() [2/2]

const Scalar * vistle::RectilinearGrid::coords ( int  c) const
inline

◆ copyAttributes()

void vistle::RectilinearGrid::copyAttributes ( Object::const_ptr  src,
bool  replace = true 
)
overridevirtual

Reimplemented from vistle::Object.

◆ exitDistance()

Scalar vistle::RectilinearGrid::exitDistance ( Index  elem,
const Vector point,
const Vector dir 
) const
overridevirtual

Implements vistle::GridInterface.

◆ findCell()

Index vistle::RectilinearGrid::findCell ( const Vector point,
Index  hint = InvalidIndex,
int  flags = NoFlags 
) const
overridevirtual

Implements vistle::GridInterface.

◆ getBounds()

std::pair< Vector, Vector > vistle::RectilinearGrid::getBounds ( ) const
overridevirtual

◆ getGlobalIndexOffset()

Index vistle::RectilinearGrid::getGlobalIndexOffset ( int  c) const
inlineoverridevirtual

Reimplemented from vistle::StructuredGridBase.

◆ getInterpolator()

GridInterface::Interpolator vistle::RectilinearGrid::getInterpolator ( Index  elem,
const Vector point,
DataBase::Mapping  mapping = DataBase::Vertex,
InterpolationMode  mode = Linear 
) const
overridevirtual

Implements vistle::GridInterface.

◆ getNumDivisions() [1/2]

Index vistle::RectilinearGrid::getNumDivisions ( int  c) const
inlineoverridevirtual

Reimplemented from vistle::StructuredGridBase.

◆ getNumDivisions() [2/2]

Index vistle::RectilinearGrid::getNumDivisions ( int  c)
inlineoverridevirtual

Reimplemented from vistle::StructuredGridBase.

◆ getNumGhostLayers() [1/2]

Index vistle::RectilinearGrid::getNumGhostLayers ( unsigned  dim,
GhostLayerPosition  pos 
) const
overridevirtual

Reimplemented from vistle::StructuredGridBase.

◆ getNumGhostLayers() [2/2]

Index vistle::RectilinearGrid::getNumGhostLayers ( unsigned  dim,
GhostLayerPosition  pos 
)
overridevirtual

Reimplemented from vistle::StructuredGridBase.

◆ getNumVertices() [1/2]

Index vistle::RectilinearGrid::getNumVertices ( ) const
overridevirtual

◆ getNumVertices() [2/2]

Index vistle::RectilinearGrid::getNumVertices ( )
overridevirtual

◆ getVertex()

Vector vistle::RectilinearGrid::getVertex ( Index  v) const
overridevirtual

◆ inside()

bool vistle::RectilinearGrid::inside ( Index  elem,
const Vector point 
) const
overridevirtual

Implements vistle::GridInterface.

◆ normals()

Normals::const_ptr vistle::RectilinearGrid::normals ( ) const
overridevirtual

◆ referencedObjects()

std::set< Object::const_ptr > vistle::RectilinearGrid::referencedObjects ( ) const
overridevirtual

check whether all references have been resolved

Reimplemented from vistle::Object.

◆ setGlobalIndexOffset()

void vistle::RectilinearGrid::setGlobalIndexOffset ( int  c,
Index  offset 
)
overridevirtual

◆ setNormals()

void vistle::RectilinearGrid::setNormals ( Normals::const_ptr  normals)

◆ setNumGhostLayers()

void vistle::RectilinearGrid::setNumGhostLayers ( unsigned  dim,
GhostLayerPosition  pos,
unsigned  value 
)
overridevirtual

Reimplemented from vistle::StructuredGridBase.


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