Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Migliore
VTK
Commits
56291e75
Commit
56291e75
authored
2 years ago
by
Timothée Couble
Browse files
Options
Downloads
Patches
Plain Diff
Replace vtkXMLReader.h doc with Doxygen standard
parent
bef2405f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IO/XML/vtkXMLReader.h
+87
-37
87 additions, 37 deletions
IO/XML/vtkXMLReader.h
with
87 additions
and
37 deletions
IO/XML/vtkXMLReader.h
+
87
−
37
View file @
56291e75
...
...
@@ -206,33 +206,51 @@ protected:
vtkXMLReader
();
~
vtkXMLReader
()
override
;
// Pipeline execution methods to be defined by subclass. Called by
// corresponding RequestData methods after appropriate setup has been
// done.
///@{
/**
* Pipeline execution methods to be defined by subclass. Called by
* corresponding RequestData methods after appropriate setup has been
* done.
*/
virtual
int
ReadXMLInformation
();
virtual
void
ReadXMLData
();
///@}
// Get the name of the data set being read.
/**
* Get the name of the data set being read.
*/
virtual
const
char
*
GetDataSetName
()
=
0
;
// Test if the reader can read a file with the given version number.
/**
* Test if the reader can read a file with the given version number.
*/
virtual
int
CanReadFileVersion
(
int
major
,
int
minor
);
// Setup the output with no data available. Used in error cases.
/**
* Setup the output with no data available. Used in error cases.
*/
virtual
void
SetupEmptyOutput
()
=
0
;
// Setup the output's information.
/**
* Setup the output's information.
*/
virtual
void
SetupOutputInformation
(
vtkInformation
*
vtkNotUsed
(
outInfo
))
{}
// Setup the output's data with allocation.
/**
* Setup the output's data with allocation.
*/
virtual
void
SetupOutputData
();
// Read the primary element from the file. This is the element
// whose name is the value returned by GetDataSetName().
/**
* Read the primary element from the file. This is the element
* whose name is the value returned by GetDataSetName().
*/
virtual
int
ReadPrimaryElement
(
vtkXMLDataElement
*
ePrimary
);
// Read the top-level element from the file. This is always the
// VTKFile element.
/**
* Read the top-level element from the file. This is always the
* VTKFile element.
*/
virtual
int
ReadVTKFile
(
vtkXMLDataElement
*
eVTKFile
);
/**
...
...
@@ -242,19 +260,28 @@ protected:
*/
int
GetLocalDataType
(
vtkXMLDataElement
*
da
,
int
datatype
);
// Create a vtkAbstractArray from its corresponding XML representation.
// Does not allocate.
/**
* Create a vtkAbstractArray from its corresponding XML representation.
* Does not allocate.
*/
vtkAbstractArray
*
CreateArray
(
vtkXMLDataElement
*
da
);
// Create a vtkInformationKey from its corresponding XML representation.
// Stores it in the instance of vtkInformationProvided. Does not allocate.
/**
* Create a vtkInformationKey from its corresponding XML representation.
* Stores it in the instance of vtkInformationProvided. Does not allocate.
*/
int
CreateInformationKey
(
vtkXMLDataElement
*
eInfoKey
,
vtkInformation
*
info
);
// Populates the info object with the InformationKey children in infoRoot.
// Returns false if errors occur.
/**
* Populates the info object with the InformationKey children in infoRoot.
* Returns false if errors occur.
*/
bool
ReadInformation
(
vtkXMLDataElement
*
infoRoot
,
vtkInformation
*
info
);
// Internal utility methods.
///@{
/**
* Internal utility methods.
*/
virtual
int
OpenStream
();
virtual
void
CloseStream
();
virtual
int
OpenVTKFile
();
...
...
@@ -265,6 +292,7 @@ protected:
virtual
void
DestroyXMLParser
();
void
SetupCompressor
(
const
char
*
type
);
int
CanReadFileVersionString
(
const
char
*
version
);
///@}
/**
* This method is used by CanReadFile() to check if the reader can read an XML
...
...
@@ -273,13 +301,20 @@ protected:
*/
virtual
int
CanReadFileWithDataType
(
const
char
*
dsname
);
// Returns the major version for the file being read. -1 when invalid.
/**
* Returns the major version for the file being read. -1 when invalid.
*/
vtkGetMacro
(
FileMajorVersion
,
int
);
// Returns the minor version for the file being read. -1 when invalid.
/**
* Returns the minor version for the file being read. -1 when invalid.
*/
vtkGetMacro
(
FileMinorVersion
,
int
);
// Utility methods for subclasses.
///@{
/**
* Utility methods for subclasses.
*/
int
IntersectExtents
(
int
*
extent1
,
int
*
extent2
,
int
*
result
);
int
Min
(
int
a
,
int
b
);
int
Max
(
int
a
,
int
b
);
...
...
@@ -291,40 +326,55 @@ protected:
void
ReadAttributeIndices
(
vtkXMLDataElement
*
eDSA
,
vtkDataSetAttributes
*
dsa
);
char
**
CreateStringArray
(
int
numStrings
);
void
DestroyStringArray
(
int
numStrings
,
char
**
strings
);
///@}
// Read an Array values starting at the given index and up to numValues.
// This method assumes that the array is of correct size to
// accommodate all numValues values. arrayIndex is the value index at which the read
// values will be put in the array.
/**
* Read an Array values starting at the given index and up to numValues.
* This method assumes that the array is of correct size to
* accommodate all numValues values. arrayIndex is the value index at which the read
* values will be put in the array.
*/
virtual
int
ReadArrayValues
(
vtkXMLDataElement
*
da
,
vtkIdType
arrayIndex
,
vtkAbstractArray
*
array
,
vtkIdType
startIndex
,
vtkIdType
numValues
,
FieldType
type
=
OTHER
);
// Read an Array values starting at the given tuple index and up to numTuples
// taking into account the number of components declared in array.
// This method assumes that the array is of correct size to
// accommodate all numTuples multiplied by number of components.
// arrayTupleIndex is the tuple index at which the read
// values will be put in the array.
/**
* Read an Array values starting at the given tuple index and up to numTuples
* taking into account the number of components declared in array.
* This method assumes that the array is of correct size to
* accommodate all numTuples multiplied by number of components.
* arrayTupleIndex is the tuple index at which the read
* values will be put in the array.
*/
virtual
int
ReadArrayTuples
(
vtkXMLDataElement
*
da
,
vtkIdType
arrayTupleIndex
,
vtkAbstractArray
*
array
,
vtkIdType
startTupleIndex
,
vtkIdType
numTuples
,
FieldType
type
=
OTHER
);
// Setup the data array selections for the input's set of arrays.
/**
* Setup the data array selections for the input's set of arrays.
*/
void
SetDataArraySelections
(
vtkXMLDataElement
*
eDSA
,
vtkDataArraySelection
*
sel
);
int
SetFieldDataInfo
(
vtkXMLDataElement
*
eDSA
,
int
association
,
vtkIdType
numTuples
,
vtkInformationVector
*
(
&
infoVector
));
// Check whether the given array element is an enabled array.
///@{
/**
* Check whether the given array element is an enabled array.
*/
int
PointDataArrayIsEnabled
(
vtkXMLDataElement
*
ePDA
);
int
CellDataArrayIsEnabled
(
vtkXMLDataElement
*
eCDA
);
///@}
// Callback registered with the SelectionObserver.
/**
* Callback registered with the SelectionObserver.
*/
static
void
SelectionModifiedCallback
(
vtkObject
*
caller
,
unsigned
long
eid
,
void
*
clientdata
,
void
*
calldata
);
// Give concrete classes an option to squeeze any output arrays
// at the end of RequestData.
/**
* Give concrete classes an option to squeeze any output arrays
* at the end of RequestData.
*/
virtual
void
SqueezeOutputArrays
(
vtkDataObject
*
)
{}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment