您的位置:首页 > 其它

VTK学习笔记:数据集之结构化点集

2014-04-25 22:05 375 查看
首先,如果你都不清楚数据集的类型和数据集的属性数据是什么,有哪些,推荐一个参考链接:http://lzchenheng.blog.163.com/blog/static/8383353620108644245513/

这段时间,就是分别针对不同的数据集学习,所以会尽力写详细点,顺便跟各位大牛们交流下。

来看看数据集的类图吧,类图也在发展,可能有些文档上跟这有区别。这个应该是最新的



结构化点集 vtkStructuredPoints

这个类继承于vtkImageData,所以搞图像的孩子都知道这个肯定是基础内容。适用于结构化的数据的操作。这个类的主要方法还是继承自vtkImageData,vtkDataObject等,自己类本身没有什么方法。所以想看这个类提供了什么方法,得问别的类去找。

说明:StructuredPoints is asubclass of ImageData that requires the data extent to exactly match the updateextent. Normall image data allows that the data extent may be larger than theupdate extent. StructuredPoints also defines the origin differently
thatvtkImageData. For structured points the origin is the location of first point.Whereas images define the origin as the location of point 0, 0, 0. Image Originis stored in ivar, and structured points have special methods forsetting/getting the origin/extents.
可以看出,这个类型就相当于对vtkImageData子类,无特殊自己的方法。坐标原点跟图片的定义也不一致。

头文件定义:

31 #ifndef
__vtkStructuredPoints_h
32 #define
__vtkStructuredPoints_h
33
34 #include
"vtkCommonDataModelModule.h"
// For export macro
35 #include
"vtkImageData.h"
36
37
38 class
VTKCOMMONDATAMODEL_EXPORT

vtkStructuredPoints : public

vtkImageData
39 {
40 public:
41
static
vtkStructuredPoints *New();
42
vtkTypeMacro(vtkStructuredPoints,vtkImageData);
43
45
int
GetDataObjectType() {return

VTK_STRUCTURED_POINTS;}
46
47 protected:
48

vtkStructuredPoints();
49

~vtkStructuredPoints() {}
50 private:
51

vtkStructuredPoints(const

vtkStructuredPoints&); // Not implemented.
52
void operator=(const

vtkStructuredPoints&); // Not implemented.
53 };
54
55 #endif
56
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: