#include <GridTopology.h>


Public Member Functions | |
| GridTopology () | |
| GridTopology (int nx, int ny, int nz) | |
| void | setSize (int nx, int ny, int nz) |
| void | parse (core::objectmodel::BaseObjectDescription *arg) |
| Parse the given description to assign values to this object's fields and potentially other parameters. | |
| int | getNx () const |
| int | getNy () const |
| int | getNz () const |
| void | setNx (int n_) |
| void | setNy (int n_) |
| void | setNz (int n_) |
| virtual int | getNbHexas () |
| Hexa | getHexaCopy (int i) |
| Hexa | getHexa (int x, int y, int z) |
| Cube | getCubeCopy (int i) |
| Cube | getCube (int x, int y, int z) |
| Quad | getQuadCopy (int i) |
| Quad | getQuad (int x, int y, int z) |
| int | point (int x, int y, int z) const |
| int | hexa (int x, int y, int z) const |
| int | cube (int x, int y, int z) const |
Protected Member Functions | |
| virtual void | setSize () |
| virtual void | updateEdges () |
| virtual void | updateQuads () |
| virtual void | updateHexas () |
Protected Attributes | |
| Data< Vec< 3, int > > | n |
Definition at line 41 of file GridTopology.h.
| sofa::component::topology::GridTopology::GridTopology | ( | ) |
Definition at line 44 of file GridTopology.cpp.
Definition at line 49 of file GridTopology.cpp.
References sofa::component::topology::MeshTopology::nbPoints.
Definition at line 102 of file GridTopology.h.
References hexa().
Referenced by sofa::component::topology::SparseGridTopology::buildFromFiner(), sofa::component::topology::RegularGridTopology::findCube(), sofa::component::topology::RegularGridTopology::findNearestCube(), and sofa::component::topology::SparseGridTopology::propagateFrom().
Definition at line 93 of file GridTopology.h.
References getHexaCopy().
Referenced by sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::draw().
| GridTopology::Hexa sofa::component::topology::GridTopology::getHexa | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) |
Definition at line 146 of file GridTopology.cpp.
References point().
Referenced by getCube(), and getHexaCopy().
| GridTopology::Hexa sofa::component::topology::GridTopology::getHexaCopy | ( | int | i | ) |
Definition at line 138 of file GridTopology.cpp.
Referenced by sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT(), sofa::component::topology::SparseGridTopology::buildFromFiner(), sofa::component::topology::SparseGridTopology::buildFromRegularGridTypes(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::draw(), getCubeCopy(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
| virtual int sofa::component::topology::GridTopology::getNbHexas | ( | ) | [inline, virtual] |
Reimplemented from sofa::component::topology::MeshTopology.
Definition at line 76 of file GridTopology.h.
References n.
Referenced by sofa::component::topology::SparseGridTopology::buildFromFiner(), sofa::component::topology::SparseGridTopology::buildFromRawVoxelFile(), sofa::component::topology::SparseGridTopology::buildFromRegularGridTypes(), sofa::component::topology::SparseGridTopology::buildFromVoxelFile(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
| int sofa::component::topology::GridTopology::getNx | ( | ) | const [inline] |
Definition at line 66 of file GridTopology.h.
References n.
Referenced by sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addDForce(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addForce(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::draw(), sofa::component::topology::CylinderGridTopology::getPoint(), sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::init(), sofa::component::topology::SparseGridTopology::propagateFrom(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
| int sofa::component::topology::GridTopology::getNy | ( | ) | const [inline] |
Definition at line 67 of file GridTopology.h.
References n.
Referenced by sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addDForce(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addForce(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::draw(), sofa::component::topology::CylinderGridTopology::getPoint(), sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::init(), sofa::component::topology::SparseGridTopology::propagateFrom(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
| int sofa::component::topology::GridTopology::getNz | ( | ) | const [inline] |
Definition at line 68 of file GridTopology.h.
References n.
Referenced by sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addDForce(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addForce(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::draw(), sofa::component::topology::CylinderGridTopology::getPoint(), sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::init(), sofa::component::topology::SparseGridTopology::propagateFrom(), and sofa::component::topology::SparseGridTopology::voxelizeTriangleMesh().
| GridTopology::Quad sofa::component::topology::GridTopology::getQuad | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) |
| GridTopology::Quad sofa::component::topology::GridTopology::getQuadCopy | ( | int | i | ) |
| void sofa::component::topology::GridTopology::parse | ( | core::objectmodel::BaseObjectDescription * | arg | ) | [inline, virtual] |
Parse the given description to assign values to this object's fields and potentially other parameters.
Reimplemented from sofa::core::componentmodel::topology::BaseMeshTopology.
Reimplemented in sofa::component::topology::RegularGridTopology.
Definition at line 50 of file GridTopology.h.
References sofa::core::objectmodel::BaseObjectDescription::getAttribute(), n, and setSize().
Definition at line 100 of file GridTopology.h.
References n.
Referenced by sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addDForce(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::addForce(), sofa::component::forcefield::RegularGridSpringForceField< DataTypes >::draw(), getHexa(), getQuad(), updateEdges(), updateHexas(), and updateQuads().
| void sofa::component::topology::GridTopology::setNx | ( | int | n_ | ) | [inline] |
| void sofa::component::topology::GridTopology::setNy | ( | int | n_ | ) | [inline] |
| void sofa::component::topology::GridTopology::setNz | ( | int | n_ | ) | [inline] |
| void sofa::component::topology::GridTopology::setSize | ( | ) | [protected, virtual] |
Definition at line 63 of file GridTopology.cpp.
References sofa::component::topology::MeshTopology::invalidate(), n, and sofa::component::topology::MeshTopology::nbPoints.
Referenced by parse(), setNx(), setNy(), setNz(), and setSize().
Definition at line 55 of file GridTopology.cpp.
Referenced by sofa::component::topology::SparseGridTopology::buildFromFiner(), sofa::component::topology::SparseGridTopology::buildFromRawVoxelFile(), sofa::component::topology::SparseGridTopology::buildFromTriangleMesh(), and sofa::component::topology::SparseGridTopology::buildFromVoxelFile().
| void sofa::component::topology::GridTopology::updateEdges | ( | ) | [protected, virtual] |
Reimplemented from sofa::component::topology::MeshTopology.
Definition at line 69 of file GridTopology.cpp.
References n, point(), and sofa::component::topology::MeshTopology::seqEdges.
| void sofa::component::topology::GridTopology::updateHexas | ( | ) | [protected, virtual] |
Reimplemented from sofa::component::topology::MeshTopology.
Definition at line 116 of file GridTopology.cpp.
References sofa::core::objectmodel::Data< T >::beginEdit(), sofa::core::objectmodel::Data< T >::endEdit(), n, point(), sofa::component::topology::MeshTopology::seqHexas, and SOFA_NEW_HEXA.
| void sofa::component::topology::GridTopology::updateQuads | ( | ) | [protected, virtual] |
Reimplemented from sofa::component::topology::MeshTopology.
Definition at line 92 of file GridTopology.cpp.
References n, point(), and sofa::component::topology::MeshTopology::seqQuads.
Data< Vec<3, int> > sofa::component::topology::GridTopology::n [protected] |
Definition at line 105 of file GridTopology.h.
Referenced by sofa::component::topology::RegularGridTopology::findCube(), sofa::component::topology::RegularGridTopology::findNearestCube(), sofa::component::topology::RegularGridTopology::getCubeCoordinate(), sofa::component::topology::RegularGridTopology::getCubeIndex(), getHexaCopy(), sofa::component::topology::RegularGridTopology::getIndex(), sofa::component::topology::CylinderGridTopology::getIndex(), getNbHexas(), getNx(), getNy(), getNz(), sofa::component::topology::RegularGridTopology::getPoint(), sofa::component::topology::CylinderGridTopology::getPoint(), getQuad(), getQuadCopy(), hexa(), parse(), point(), setNx(), setNy(), setNz(), sofa::component::topology::RegularGridTopology::setPos(), setSize(), updateEdges(), updateHexas(), and updateQuads().
1.5.7.1