11 #ifndef smtk_mesh_core_PointField_h
12 #define smtk_mesh_core_PointField_h
14 #include "smtk/CoreExports.h"
17 #include "smtk/mesh/core/Handle.h"
18 #include "smtk/mesh/core/MeshSet.h"
50 bool operator==(
const PointField& other)
const;
51 bool operator!=(
const PointField& other)
const;
55 std::string name()
const {
return m_name; }
61 std::size_t size()
const;
64 std::size_t dimension()
const;
67 smtk::mesh::FieldType type()
const;
78 bool get(
const smtk::mesh::HandleRange& cellIds,
void* values)
const;
83 bool set(
const smtk::mesh::HandleRange& cellIds,
const void* values);
88 bool get(
void* values)
const;
93 bool set(
const void* values);
97 std::vector<T> get()
const
101 return std::vector<T>();
103 std::vector<T> values(size() * dimension());
104 if (!get(values.data()))
106 return std::vector<T>();
113 std::vector<T> get(
const smtk::mesh::HandleRange& cellIds)
const
117 return std::vector<T>();
119 std::vector<T> values(cellIds.size() * dimension());
120 if (!get(cellIds, values.data()))
122 return std::vector<T>();
129 bool set(
const std::vector<T>& values)
135 return set(values.data());
140 bool set(
const smtk::mesh::HandleRange& cellIds,
const std::vector<T>& values)
146 return set(cellIds, values.data());