Class BaseProperty
Defined in File properties.h
Inheritance Relationships
Derived Type
public zmesh::core::Property< T >(Template Class Property)
Class Documentation
-
class BaseProperty
Property的基类
Subclassed by zmesh::core::Property< T >
Public Functions
-
inline explicit BaseProperty(std::string name)
-
virtual ~BaseProperty() = default
-
virtual void resize(size_t n) = 0
修改属性的size 当向Mesh中添加Vertex或者Face的时候需要使用
- 参数
n -- 新的property size大小
-
virtual void reserve(size_t n) = 0
为属性的容器预留空间 具体实现就是调用stl容器的reserve而已
- 参数
n -- 预留的空间大小
-
virtual void push_back() = 0
添加一个空元素
-
virtual void free_memory() = 0
释放内存
-
virtual BasePropertyPtr clone() = 0
deep copy
- 返回
BasePropertyPtr 克隆后的属性指针
-
inline const std::string &name() const
获得属性的名字
- 返回
const std::string& 属性的名字
Protected Attributes
-
std::string name_
属性的名字
-
inline explicit BaseProperty(std::string name)