/usr/include/opencollada/COLLADASaxFrameworkLoader/COLLADASaxFWLPostProcessor.h is in opencollada-dev 0.1.0~20140703.ddf8f47+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | /*
Copyright (c) 2008-2009 NetAllied Systems GmbH
This file is part of COLLADASaxFrameworkLoader.
Licensed under the MIT Open Source License,
for details please see LICENSE file or the website
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __COLLADASAXFWL_POSTPROCESSOR_H__
#define __COLLADASAXFWL_POSTPROCESSOR_H__
#include "COLLADASaxFWLPrerequisites.h"
#include "COLLADASaxFWLDocumentProcessor.h"
namespace COLLADASaxFWL
{
/** TODO Documentation */
class PostProcessor : public DocumentProcessor
{
private:
public:
/** Constructor.
@param colladaLoader The collada loader this file loader is being used by. Used to retrieve document
global properties.
@param saxParserErrorHandler The error handler all sax parser errors should be passed to.
@param objectFlags Flags (Loader::ObjectFlags) of objects that should be parsed. Set these
if you don't want to parse the entire file, but only those parts required to create the objects in
objectFlags.
@param parsedObjectFlags Flags (Loader::ObjectFlags) of objects already parsed by @a colladaLoader.
Will be set to all objects parsed after a call of load().*/
PostProcessor( Loader* colladaLoader,
SaxParserErrorHandler* saxParserErrorHandler,
int objectFlags,
int& /*[in,out]*/ parsedObjectFlags);
/** Destructor. */
virtual ~PostProcessor();
/** Performs all the required post processing.:*/
void postProcess();
/************** should be removed after a redesign of IFileLoader **********/
/** Sets the parser to @a parserToBeSet.*/
virtual void setParser( COLLADASaxFWL14::ColladaParserAutoGen14* parserToBeSet ){ COLLADABU_ASSERT(false);}
/** Sets the parser to @a parserToBeSet.*/
virtual void setParser( COLLADASaxFWL15::ColladaParserAutoGen15* parserToBeSet ){ COLLADABU_ASSERT(false);}
/** Returns the absolute uri of the currently parsed file*/
virtual const COLLADABU::URI& getFileUri(){ COLLADABU_ASSERT(false); return COLLADABU::URI::INVALID; }
/****************************************************************************/
private:
/** Writes all the visual scenes.*/
void writeVisualScenes();
/** Writes all the library nodes.*/
void writeLibraryNodes();
/** Writes all the effects.*/
void writeEffects();
/** Writes all the lights.*/
void writeLights();
/** Writes all the cameras.*/
void writeCameras();
/** Creates all the animation lists.*/
void createMissingAnimationLists();
/** Stores the binding stored in @a binding in the appropriate animation list*/
void createMissingAnimationList( const Loader::AnimationSidAddressBinding& binding );
/** Writes all the morph controllers, stored in the loaders morph controller list.*/
bool writeMorphControllers();
/** Writes all animation lists.*/
void writeAnimationLists();
void linkAndWriteFormulas();
/** Creates and writes the kinematics scene.*/
void createAndWriteKinematicsScene();
/** Returns a pointer to the file loader. */
virtual FileLoader* getFileLoader() { return 0; }
/** Returns a pointer to the file loader. */
virtual const FileLoader* getFileLoader() const { return 0; }
/** Disable default copy ctor. */
PostProcessor( const PostProcessor& pre );
/** Disable default assignment operator. */
const PostProcessor& operator= ( const PostProcessor& pre );
};
} // namespace COLLADASAXFWL
#endif // __COLLADASAXFWL_POSTPROCESSOR_H__
|