VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
XML
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 "vtkIOXMLModule.h"
// For export macro
80
#include "
vtkXMLParser.h
"
81
82
class
vtkXMLMaterial
;
83
class
vtkXMLMaterialParserInternals;
84
85
class
VTKIOXML_EXPORT
vtkXMLMaterialParser
:
public
vtkXMLParser
86
{
87
public
:
88
static
vtkXMLMaterialParser
*
New
();
89
vtkTypeMacro(
vtkXMLMaterialParser
,
vtkXMLParser
);
90
void
PrintSelf
(ostream& os,
vtkIndent
indent);
91
93
94
vtkGetObjectMacro(
Material
,
vtkXMLMaterial
);
95
void
SetMaterial(
vtkXMLMaterial
*);
97
99
101
virtual
int
Parse
();
102
virtual
int
Parse
(
const
char
* inputString);
103
virtual
int
Parse
(
const
char
* inputString,
unsigned
int
length
);
105
107
109
virtual
int
InitializeParser
();
110
protected
:
111
vtkXMLMaterialParser
();
112
~
vtkXMLMaterialParser
();
114
116
virtual
void
StartElement
(
const
char
*
name
,
const
char
** atts);
117
119
virtual
void
EndElement
(
const
char
*);
120
122
virtual
void
CharacterDataHandler
(
const
char
*
data
,
int
length
);
123
124
vtkXMLMaterial
*
Material
;
125
vtkXMLMaterialParserInternals*
Internals
;
126
127
private
:
128
vtkXMLMaterialParser
(
const
vtkXMLMaterialParser
&);
// Not implemented
129
void
operator=(
const
vtkXMLMaterialParser
&);
// Not implemented
130
};
131
#endif
Generated on Fri May 25 2012 22:39:32 for VTK by
1.8.1