AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::klee::ShapeSet Class Reference

A ShapeSet represents a document in the common shape format. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/klee/ShapeSet.hpp>

Public Member Functions

void setShapes (std::vector< Shape > shapes)
 
std::vector< Shape > const & getShapes () const
 
void setPath (const std::string &path)
 
const std::string & getPath () const
 
void setDimensions (Dimensions dimensions)
 
Dimensions getDimensions () const
 

Detailed Description

A ShapeSet represents a document in the common shape format.

Member Function Documentation

◆ setShapes()

void axom::klee::ShapeSet::setShapes ( std::vector< Shape shapes)

Set the shapes in this set.

Parameters
shapesall the shapes in this set

◆ getShapes()

std::vector<Shape> const& axom::klee::ShapeSet::getShapes ( ) const
inline

Get the shapes in this set.

Returns
the shapes in this set

◆ setPath()

void axom::klee::ShapeSet::setPath ( const std::string &  path)

Set the file path from which this ShapeSet was created. This must be set for resolvePath() to work.

Parameters
paththe ShapeSet's path

◆ getPath()

const std::string& axom::klee::ShapeSet::getPath ( ) const
inline

Get the path of the file from which this ShapeSet was created.

Returns
the path of the file. Can be empty.

◆ setDimensions()

void axom::klee::ShapeSet::setDimensions ( Dimensions  dimensions)

Sets the dimensions for all shapes in the ShapeSet.

Parameters
dimensionsthe dimension for all the shapes
Note
This function must be called before calling getDimensions()

◆ getDimensions()

Dimensions axom::klee::ShapeSet::getDimensions ( ) const

Returns the dimension of the ShapeSet.

Precondition
Only valid after setDimensions() has been called on this instance
See also
setDimensions()

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