Package xj3d.filter.filters
Class ExportPixelTextureFilter
java.lang.Object
xj3d.filter.AbstractFilter
xj3d.filter.BaseFilter
xj3d.filter.node.CommonEncodedBaseFilter
xj3d.filter.filters.ExportPixelTextureFilter
- All Implemented Interfaces:
BinaryContentHandler
,ContentHandler
,ProtoHandler
,RouteHandler
,ScriptHandler
,StringContentHandler
Write PixelTextures to a file. The files will be named
PixelTexture_N.TYPE where N is a number starting at 0
(zero) and incrementing for each PixelTexture found and
TYPE is the image type.
PixelTexture's that are USE'ed are not exported. The files
are written to the current user directory. No check is performed
to prevent files with the same name from being overwritten.
Filter Options
-imageType name
Specify the image type.
This can be any type that the ImageIO package supports.
The default is png.
- Version:
- $Revision: 1.0 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class xj3d.filter.node.CommonEncodedBaseFilter
encMap, encodeNodes, encodeRoutes, encStack, factory, scene
Fields inherited from class xj3d.filter.BaseFilter
insideInvalidField, sceneMarker, suppressCalls
Fields inherited from class xj3d.filter.AbstractFilter
contentHandler, documentLocator, errorHandler, fieldHandler, fieldReader, fieldStack, lastErrorCode, majorVersion, minorVersion, nodeStack, parsingType, protoHandler, routeHandler, scriptHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Declaration of the end of the document.void
endNode()
Notification of the end of a node declaration.void
setArguments
(String[] args) Set the argument parameters to control the filter operation.Methods inherited from class xj3d.filter.node.CommonEncodedBaseFilter
encode, endExternProtoDecl, endField, endProtoBody, endProtoDecl, endScriptDecl, externProtoURI, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, fieldValue, protoFieldDecl, protoIsDecl, routeDecl, scriptFieldDecl, setDebug, startDocument, startExternProtoDecl, startNode, startProtoBody, startProtoDecl, startScriptDecl, useDecl
Methods inherited from class xj3d.filter.BaseFilter
componentDecl, exportDecl, getContentHandler, getErrorReporter, getLastErrorCode, getProtoHandler, getRouteHandler, getScriptHandler, importDecl, metaDecl, profileDecl, setContentHandler, setDocumentLocator, setErrorReporter, setProtoHandler, setRouteHandler, setScriptHandler, startField, suppressCalls
Methods inherited from class xj3d.filter.AbstractFilter
setParsingType
-
Constructor Details
-
ExportPixelTextureFilter
public ExportPixelTextureFilter()Create an instance of the filter.
-
-
Method Details
-
endDocument
Declaration of the end of the document. There will be no further parsing and hence events after this.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classCommonEncodedBaseFilter
- Throws:
SAVException
- This call is taken at the wrong time in the structure of the documentVRMLException
- The content provided is invalid for this part of the document or can't be parsed
-
endNode
Notification of the end of a node declaration.- Specified by:
endNode
in interfaceContentHandler
- Overrides:
endNode
in classCommonEncodedBaseFilter
- Throws:
SAVException
- This call is taken at the wrong time in the structure of the document.VRMLException
- This call is taken at the wrong time in the structure of the document.
-
setArguments
Set the argument parameters to control the filter operation.- Overrides:
setArguments
in classBaseFilter
- Parameters:
args
- The array of argument parameters.
-