View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
vistle::StructuredGridBase Class Referenceabstract

#include <core/structuredgridbase.h>

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

Public Types

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

virtual bool isGhostCell (Index elem) const override
 
virtual Index getNumElements () override
 
virtual Index getNumElements () const override
 
virtual Index getNumDivisions (int d)
 
virtual Index getNumDivisions (int d) const
 
virtual Index getNumGhostLayers (unsigned dim, GhostLayerPosition pos)
 
virtual Index getNumGhostLayers (unsigned dim, GhostLayerPosition pos) const
 
virtual Index getGlobalIndexOffset (int d) const
 
virtual void setGlobalIndexOffset (int d, Index offset)=0
 
virtual void setNumGhostLayers (unsigned dim, GhostLayerPosition pos, unsigned value)
 
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
virtual Index findCell (const Vector &point, Index hint=InvalidIndex, int flags=NoFlags) const =0
 
virtual bool inside (Index elem, const Vector &point) const =0
 
virtual std::pair< Vector, VectorcellBounds (Index elem) const =0
 
virtual Scalar exitDistance (Index elem, const Vector &point, const Vector &dir) const =0
 
 DEFINE_ENUM_WITH_STRING_CONVERSIONS (InterpolationMode,(First)(Mean)(Nearest)(Linear))
 
virtual Interpolator getInterpolator (Index elem, const Vector &point, DataBase::Mapping mapping=DataBase::Vertex, InterpolationMode mode=Linear) const =0
 
Interpolator getInterpolator (const Vector &point, DataBase::Mapping mapping=DataBase::Vertex, InterpolationMode mode=Linear) const
 
- Public Member Functions inherited from vistle::GeometryInterface
virtual std::pair< Vector, VectorgetBounds () const =0
 
virtual Index getNumVertices ()=0
 
virtual Index getNumVertices () const =0
 
virtual normals_const_ptr normals () const =0
 
virtual Vector3 getVertex (Index v) const =0
 
- Public Member Functions inherited from vistle::ObjectInterfaceBase
virtual std::shared_ptr< const Objectobject () const =0
 

Static Public Member Functions

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

static constexpr std::array< Index, 8 > HexahedronIndices [3]
 

Additional Inherited Members

- Protected Member Functions inherited from vistle::ObjectInterfaceBase
virtual ~ObjectInterfaceBase ()
 

Member Typedef Documentation

◆ Class

◆ const_ptr

typedef std::shared_ptr<const Class> vistle::StructuredGridBase::const_ptr

◆ ptr

typedef std::shared_ptr<Class> vistle::StructuredGridBase::ptr

Member Enumeration Documentation

◆ GhostLayerPosition

Enumerator
Bottom 
Top 

Member Function Documentation

◆ as() [1/2]

static std::shared_ptr< const Class > vistle::StructuredGridBase::as ( std::shared_ptr< const Object ptr)
inlinestatic

◆ as() [2/2]

static std::shared_ptr< Class > vistle::StructuredGridBase::as ( std::shared_ptr< Object ptr)
inlinestatic

◆ cellCenter()

Vector vistle::StructuredGridBase::cellCenter ( Index  elem) const
overridevirtual

Implements vistle::GridInterface.

◆ cellCoordinates()

static std::array< Index, 3 > vistle::StructuredGridBase::cellCoordinates ( Index  el,
const Index  dims[3] 
)
inlinestatic

◆ cellDiameter()

Scalar vistle::StructuredGridBase::cellDiameter ( Index  elem) const
overridevirtual

Implements vistle::GridInterface.

◆ cellIndex() [1/2]

static Index vistle::StructuredGridBase::cellIndex ( const Index  i[3],
const Index  dims[3] 
)
inlinestatic

◆ cellIndex() [2/2]

static Index vistle::StructuredGridBase::cellIndex ( const Index  ix,
const Index  iy,
const Index  iz,
const Index  dims[3] 
)
inlinestatic

◆ cellNumFaces()

Index vistle::StructuredGridBase::cellNumFaces ( Index  elem) const
inlineoverridevirtual

◆ cellVertices() [1/2]

static std::array< Index, 8 > vistle::StructuredGridBase::cellVertices ( Index  el,
const Index  dims[3] 
)
inlinestatic

◆ cellVertices() [2/2]

std::vector< Index > vistle::StructuredGridBase::cellVertices ( Index  elem) const
overridevirtual

◆ dimensionality()

static int vistle::StructuredGridBase::dimensionality ( const Index  dims[3])
inlinestatic

◆ getGlobalIndexOffset()

virtual Index vistle::StructuredGridBase::getGlobalIndexOffset ( int  d) const
inlinevirtual

◆ getNeighborElements()

std::vector< Index > vistle::StructuredGridBase::getNeighborElements ( Index  elem) const
overridevirtual

Implements vistle::GridInterface.

◆ getNumDivisions() [1/2]

virtual Index vistle::StructuredGridBase::getNumDivisions ( int  d)
inlinevirtual

◆ getNumDivisions() [2/2]

virtual Index vistle::StructuredGridBase::getNumDivisions ( int  d) const
inlinevirtual

◆ getNumElements() [1/2]

virtual Index vistle::StructuredGridBase::getNumElements ( ) const
inlineoverridevirtual

◆ getNumElements() [2/2]

virtual Index vistle::StructuredGridBase::getNumElements ( )
inlineoverridevirtual

◆ getNumGhostLayers() [1/2]

virtual Index vistle::StructuredGridBase::getNumGhostLayers ( unsigned  dim,
GhostLayerPosition  pos 
)
inlinevirtual

◆ getNumGhostLayers() [2/2]

virtual Index vistle::StructuredGridBase::getNumGhostLayers ( unsigned  dim,
GhostLayerPosition  pos 
) const
inlinevirtual

◆ isGhostCell()

bool vistle::StructuredGridBase::isGhostCell ( Index  elem) const
overridevirtual

Implements vistle::GridInterface.

◆ setGlobalIndexOffset()

virtual void vistle::StructuredGridBase::setGlobalIndexOffset ( int  d,
Index  offset 
)
pure virtual

◆ setNumGhostLayers()

virtual void vistle::StructuredGridBase::setNumGhostLayers ( unsigned  dim,
GhostLayerPosition  pos,
unsigned  value 
)
inlinevirtual

◆ vertexCoordinates()

static std::array< Index, 3 > vistle::StructuredGridBase::vertexCoordinates ( Index  v,
const Index  dims[3] 
)
inlinestatic

◆ vertexIndex() [1/2]

static Index vistle::StructuredGridBase::vertexIndex ( const Index  i[3],
const Index  dims[3] 
)
inlinestatic

◆ vertexIndex() [2/2]

static Index vistle::StructuredGridBase::vertexIndex ( const Index  ix,
const Index  iy,
const Index  iz,
const Index  dims[3] 
)
inlinestatic

Member Data Documentation

◆ HexahedronIndices

constexpr std::array< Index, 8 > vistle::StructuredGridBase::HexahedronIndices
staticconstexpr
Initial value:
= {
0, 0, 0}

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