Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
afd709a4
Commit
afd709a4
authored
Sep 27, 2006
by
Berk Geveci
Browse files
ENH: Added support for GetData(). This method makes it easy to get input/output in algorithms
parent
ffe99867
Changes
4
Hide whitespace changes
Inline
Side-by-side
Filtering/vtkHierarchicalBoxDataSet.cxx
View file @
afd709a4
...
@@ -21,11 +21,12 @@
...
@@ -21,11 +21,12 @@
#include
"vtkInformationIdTypeKey.h"
#include
"vtkInformationIdTypeKey.h"
#include
"vtkInformationIntegerVectorKey.h"
#include
"vtkInformationIntegerVectorKey.h"
#include
"vtkInformationKey.h"
#include
"vtkInformationKey.h"
#include
"vtkInformationVector.h"
#include
"vtkObjectFactory.h"
#include
"vtkObjectFactory.h"
#include
"vtkUniformGrid.h"
#include
"vtkUniformGrid.h"
#include
"vtkUnsignedCharArray.h"
#include
"vtkUnsignedCharArray.h"
vtkCxxRevisionMacro
(
vtkHierarchicalBoxDataSet
,
"1.1
4
"
);
vtkCxxRevisionMacro
(
vtkHierarchicalBoxDataSet
,
"1.1
5
"
);
vtkStandardNewMacro
(
vtkHierarchicalBoxDataSet
);
vtkStandardNewMacro
(
vtkHierarchicalBoxDataSet
);
vtkInformationKeyMacro
(
vtkHierarchicalBoxDataSet
,
BOX
,
IntegerVector
);
vtkInformationKeyMacro
(
vtkHierarchicalBoxDataSet
,
BOX
,
IntegerVector
);
...
@@ -370,3 +371,17 @@ void vtkHierarchicalBoxDataSet::PrintSelf(ostream& os, vtkIndent indent)
...
@@ -370,3 +371,17 @@ void vtkHierarchicalBoxDataSet::PrintSelf(ostream& os, vtkIndent indent)
}
}
}
}
//----------------------------------------------------------------------------
vtkHierarchicalBoxDataSet
*
vtkHierarchicalBoxDataSet
::
GetData
(
vtkInformation
*
info
)
{
return
info
?
vtkHierarchicalBoxDataSet
::
SafeDownCast
(
info
->
Get
(
DATA_OBJECT
()))
:
0
;
}
//----------------------------------------------------------------------------
vtkHierarchicalBoxDataSet
*
vtkHierarchicalBoxDataSet
::
GetData
(
vtkInformationVector
*
v
,
int
i
)
{
return
vtkHierarchicalBoxDataSet
::
GetData
(
v
->
GetInformationObject
(
i
));
}
Filtering/vtkHierarchicalBoxDataSet.h
View file @
afd709a4
...
@@ -109,6 +109,13 @@ public:
...
@@ -109,6 +109,13 @@ public:
// points.
// points.
virtual
vtkIdType
GetNumberOfPoints
();
virtual
vtkIdType
GetNumberOfPoints
();
//BTX
// Description:
// Retrieve an instance of this class from an information object.
static
vtkHierarchicalBoxDataSet
*
GetData
(
vtkInformation
*
info
);
static
vtkHierarchicalBoxDataSet
*
GetData
(
vtkInformationVector
*
v
,
int
i
=
0
);
//ETX
protected:
protected:
vtkHierarchicalBoxDataSet
();
vtkHierarchicalBoxDataSet
();
~
vtkHierarchicalBoxDataSet
();
~
vtkHierarchicalBoxDataSet
();
...
...
Filtering/vtkMultiBlockDataSet.cxx
View file @
afd709a4
...
@@ -17,10 +17,11 @@
...
@@ -17,10 +17,11 @@
#include
"vtkDataSet.h"
#include
"vtkDataSet.h"
#include
"vtkInformation.h"
#include
"vtkInformation.h"
#include
"vtkInformationIntegerKey.h"
#include
"vtkInformationIntegerKey.h"
#include
"vtkInformationVector.h"
#include
"vtkObjectFactory.h"
#include
"vtkObjectFactory.h"
vtkCxxRevisionMacro
(
vtkMultiBlockDataSet
,
"1.
6
"
);
vtkCxxRevisionMacro
(
vtkMultiBlockDataSet
,
"1.
7
"
);
vtkStandardNewMacro
(
vtkMultiBlockDataSet
);
vtkStandardNewMacro
(
vtkMultiBlockDataSet
);
vtkInformationKeyMacro
(
vtkMultiBlockDataSet
,
BLOCK
,
Integer
);
vtkInformationKeyMacro
(
vtkMultiBlockDataSet
,
BLOCK
,
Integer
);
...
@@ -64,3 +65,16 @@ void vtkMultiBlockDataSet::PrintSelf(ostream& os, vtkIndent indent)
...
@@ -64,3 +65,16 @@ void vtkMultiBlockDataSet::PrintSelf(ostream& os, vtkIndent indent)
this
->
Superclass
::
PrintSelf
(
os
,
indent
);
this
->
Superclass
::
PrintSelf
(
os
,
indent
);
}
}
//----------------------------------------------------------------------------
vtkMultiBlockDataSet
*
vtkMultiBlockDataSet
::
GetData
(
vtkInformation
*
info
)
{
return
info
?
vtkMultiBlockDataSet
::
SafeDownCast
(
info
->
Get
(
DATA_OBJECT
()))
:
0
;
}
//----------------------------------------------------------------------------
vtkMultiBlockDataSet
*
vtkMultiBlockDataSet
::
GetData
(
vtkInformationVector
*
v
,
int
i
)
{
return
vtkMultiBlockDataSet
::
GetData
(
v
->
GetInformationObject
(
i
));
}
Filtering/vtkMultiBlockDataSet.h
View file @
afd709a4
...
@@ -87,6 +87,13 @@ public:
...
@@ -87,6 +87,13 @@ public:
static
vtkInformationIntegerKey
*
BLOCK
();
static
vtkInformationIntegerKey
*
BLOCK
();
//BTX
// Description:
// Retrieve an instance of this class from an information object.
static
vtkMultiBlockDataSet
*
GetData
(
vtkInformation
*
info
);
static
vtkMultiBlockDataSet
*
GetData
(
vtkInformationVector
*
v
,
int
i
=
0
);
//ETX
protected:
protected:
vtkMultiBlockDataSet
();
vtkMultiBlockDataSet
();
~
vtkMultiBlockDataSet
();
~
vtkMultiBlockDataSet
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment