开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (6)
标签 (64)
master
nightly-master
release-6.3
dashboard
release
hooks
v8.0.1
v8.0.0
v8.0.0.rc2
v8.0.0.rc1
v7.1.1
v7.1.0
v7.1.0.rc2
v7.1.0.rc1
v7.0.0
v7.0.0.rc2
v7.0.0.rc1
v6.3.0
v6.3.0.rc2
v6.3.0-rc1
v6.3.0.rc1
v6.2.0
v6.2.0.rc1
v6.1.0
v6.1.0.rc2
v6.1.0.rc1
master
分支 (6)
标签 (64)
master
nightly-master
release-6.3
dashboard
release
hooks
v8.0.1
v8.0.0
v8.0.0.rc2
v8.0.0.rc1
v7.1.1
v7.1.0
v7.1.0.rc2
v7.1.0.rc1
v7.0.0
v7.0.0.rc2
v7.0.0.rc1
v6.3.0
v6.3.0.rc2
v6.3.0-rc1
v6.3.0.rc1
v6.2.0
v6.2.0.rc1
v6.1.0
v6.1.0.rc2
v6.1.0.rc1
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (6)
标签 (64)
master
nightly-master
release-6.3
dashboard
release
hooks
v8.0.1
v8.0.0
v8.0.0.rc2
v8.0.0.rc1
v7.1.1
v7.1.0
v7.1.0.rc2
v7.1.0.rc1
v7.0.0
v7.0.0.rc2
v7.0.0.rc1
v6.3.0
v6.3.0.rc2
v6.3.0-rc1
v6.3.0.rc1
v6.2.0
v6.2.0.rc1
v6.1.0
v6.1.0.rc2
v6.1.0.rc1
VTK
/
IO
/
SQL
/
vtkSQLGraphReader.h
VTK
/
IO
/
SQL
/
vtkSQLGraphReader.h
vtkSQLGraphReader.h 5.27 KB
一键复制 编辑 原始数据 按行查看 历史
Kitware Robot 提交于 2017年09月26日 22:32 +08:00 . Replace VTK_DELETE_FUNCTION with =delete.
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSQLGraphReader.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
/**
* @class vtkSQLGraphReader
* @brief read a vtkGraph from a database
*
*
*
* Creates a vtkGraph using one or two vtkSQLQuery's. The first (required)
* query must have one row for each arc in the graph.
* The query must have two columns which represent the source and target
* node ids.
*
* The second (optional) query has one row for each node in the graph.
* The table must have a field whose values match those in the arc table.
* If the node table is not given,
* a node will be created for each unique source or target identifier
* in the arc table.
*
* The source, target, and node ID fields must be of the same type,
* and must be either vtkStringArray or a subclass of vtkDataArray.
*
* All columns in the queries, including the source, target, and node index
* fields, are copied into the arc data and node data of the resulting
* vtkGraph. If the node query is not given, the node data will contain
* a single "id" column with the same type as the source/target id arrays.
*
* If parallel arcs are collected, not all the arc data is not copied into
* the output. Only the source and target id arrays will be transferred.
* An additional vtkIdTypeArray column called "weight" is created which
* contains the number of times each arc appeared in the input.
*
* If the node query contains positional data, the user may specify the
* names of these fields.
* These arrays must be data arrays. The z-coordinate array is optional,
* and if not given the z-coordinates are set to zero.
*/
#ifndef vtkSQLGraphReader_h
#define vtkSQLGraphReader_h
#include "vtkIOSQLModule.h" // For export macro
#include "vtkGraphAlgorithm.h"
class vtkSQLQuery;
class VTKIOSQL_EXPORT vtkSQLGraphReader : public vtkGraphAlgorithm
{
public:
static vtkSQLGraphReader* New();
vtkTypeMacro(vtkSQLGraphReader,vtkGraphAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
//@{
/**
* When set, creates a directed graph, as opposed to an undirected graph.
*/
vtkSetMacro(Directed, bool);
vtkGetMacro(Directed, bool);
vtkBooleanMacro(Directed, bool);
//@}
//@{
/**
* The query that retrieves the node information.
*/
virtual void SetVertexQuery(vtkSQLQuery* q);
vtkGetObjectMacro(VertexQuery, vtkSQLQuery);
//@}
//@{
/**
* The query that retrieves the arc information.
*/
virtual void SetEdgeQuery(vtkSQLQuery* q);
vtkGetObjectMacro(EdgeQuery, vtkSQLQuery);
//@}
//@{
/**
* The name of the field in the arc query for the source node of each arc.
*/
vtkSetStringMacro(SourceField);
vtkGetStringMacro(SourceField);
//@}
//@{
/**
* The name of the field in the arc query for the target node of each arc.
*/
vtkSetStringMacro(TargetField);
vtkGetStringMacro(TargetField);
//@}
//@{
/**
* The name of the field in the node query for the node ID.
*/
vtkSetStringMacro(VertexIdField);
vtkGetStringMacro(VertexIdField);
//@}
//@{
/**
* The name of the field in the node query for the node's x coordinate.
*/
vtkSetStringMacro(XField);
vtkGetStringMacro(XField);
//@}
//@{
/**
* The name of the field in the node query for the node's y coordinate.
*/
vtkSetStringMacro(YField);
vtkGetStringMacro(YField);
//@}
//@{
/**
* The name of the field in the node query for the node's z coordinate.
*/
vtkSetStringMacro(ZField);
vtkGetStringMacro(ZField);
//@}
//@{
/**
* When set, creates a graph with no parallel arcs.
* Parallel arcs are combined into one arc.
* No cell fields are passed to the output, except the vtkGhostType array if
* it exists, but a new field "weight" is created that holds the number of
* duplicates of that arc in the input.
*/
vtkSetMacro(CollapseEdges, bool);
vtkGetMacro(CollapseEdges, bool);
vtkBooleanMacro(CollapseEdges, bool);
//@}
protected:
vtkSQLGraphReader();
~vtkSQLGraphReader();
bool Directed;
bool CollapseEdges;
vtkSQLQuery* EdgeQuery;
vtkSQLQuery* VertexQuery;
char* SourceField;
char* TargetField;
char* VertexIdField;
char* XField;
char* YField;
char* ZField;
virtual int RequestData(
vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
virtual int RequestDataObject(
vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
private:
vtkSQLGraphReader(const vtkSQLGraphReader&) = delete;
void operator=(const vtkSQLGraphReader&) = delete;
};
#endif
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

Mirror of Visualization Toolkit repository
暂无标签
BSD-3-Clause
使用 BSD-3-Clause 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/devstone/VTK.git
git@gitee.com:devstone/VTK.git
devstone
VTK
VTK
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /