VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLMaterialParser.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLMaterialParser.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
16
/*
17
* Copyright 2004 Sandia Corporation.
18
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19
* license for use of this work by or on behalf of the
20
* U.S. Government. Redistribution and use in source and binary forms, with
21
* or without modification, are permitted provided that this Notice and any
22
* statement of authorship are reproduced on all copies.
23
*/
24
76
#ifndef __vtkXMLMaterialParser_h
77
#define __vtkXMLMaterialParser_h
78
79
#include "
vtkXMLParser.h
"
80
81
class
vtkXMLMaterial
;
82
class
vtkXMLMaterialParserInternals;
83
84
class
VTK_IO_EXPORT
vtkXMLMaterialParser
:
public
vtkXMLParser
85
{
86
public
:
87
static
vtkXMLMaterialParser
*
New
();
88
vtkTypeMacro(
vtkXMLMaterialParser
,
vtkXMLParser
);
89
void
PrintSelf
(ostream& os,
vtkIndent
indent);
90
92
93
vtkGetObjectMacro(
Material
,
vtkXMLMaterial
);
94
void
SetMaterial(
vtkXMLMaterial
*);
96
98
100
virtual
int
Parse
();
101
virtual
int
Parse
(
const
char
* inputString);
102
virtual
int
Parse
(
const
char
* inputString,
unsigned
int
length
);
104
106
108
virtual
int
InitializeParser
();
109
protected
:
110
vtkXMLMaterialParser
();
111
~
vtkXMLMaterialParser
();
113
115
virtual
void
StartElement
(
const
char
*
name
,
const
char
** atts);
116
118
virtual
void
EndElement
(
const
char
*);
119
121
virtual
void
CharacterDataHandler
(
const
char
*
data
,
int
length
);
122
123
vtkXMLMaterial
*
Material
;
124
vtkXMLMaterialParserInternals*
Internals
;
125
126
private
:
127
vtkXMLMaterialParser
(
const
vtkXMLMaterialParser
&);
// Not implemented
128
void
operator=(
const
vtkXMLMaterialParser
&);
// Not implemented
129
};
130
#endif
Generated on Fri Aug 2 2013 12:20:00 for VTK by
1.8.4