ContentPresentationModelViewNode.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 
00019 //  $Header: //DWF/Development/Components/Internal/DWF Toolkit/v7.6/develop/global/src/dwf/presentation/ContentPresentationModelViewNode.h#2 $
00020 //  $DateTime: 2008/06/18 18:08:14 $
00021 //  $Author: gaoje $
00022 //  $Change: 101166 $
00023 
00024 #ifndef _DWFTK_CONTENT_PRESENTATION_VIEW_NODE_H
00025 #define _DWFTK_CONTENT_PRESENTATION_VIEW_NODE_H
00026 
00027 
00032 
00033 #include "dwfcore/String.h"
00034 using namespace DWFCore;
00035 
00036 #include "dwf/Toolkit.h"
00037 #include "dwf/w3dtk/BOpcodeHandler.h"
00038 #include "dwf/presentation/ContentPresentationNode.h"
00039 #include "dwf/presentation/ContentPresentationReferenceNode.h"
00040 #include "dwf/presentation/ModelScene.h"
00041 
00042 
00043 namespace DWFToolkit
00044 {
00045 
00055 
00056 class DWFContentPresentationModelViewNode : public  DWFContentPresentationReferenceNode
00057                                           , public  DWFModelScene 
00058                                           _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00059 {
00060 
00061 public:
00062 
00070     _DWFTK_API
00071     DWFContentPresentationModelViewNode( const DWFString& zLabel = /*NOXLATE*/L"",
00072                                          const DWFString& zID = /*NOXLATE*/L"" )
00073         throw();
00074 
00081     _DWFTK_API
00082     virtual ~DWFContentPresentationModelViewNode()
00083         throw();
00084 
00094     _DWFTK_API
00095     virtual void getModelSceneChanges( DWFModelScene& rScene )
00096         throw( DWFException );
00097 
00105     _DWFTK_API
00106     virtual unsigned int getResetFlags() const
00107         throw( DWFException );
00108 
00112     _DWFTK_API
00113     virtual void notify( BBaseOpcodeHandler* pHandler,
00114                          const void*         pTag = NULL )
00115         throw( DWFException );
00116 
00123     _DWFTK_API
00124     virtual void insertSceneChanges( DWFContentPresentationModelViewNode& rNode )
00125         throw( DWFException );
00126 
00134     _DWFTK_API
00135     virtual void setResetFlags( unsigned int nFlags )
00136         throw( DWFException );
00137 
00141     _DWFTK_API
00142     virtual void parseAttributeList( const char** ppAttributeList )
00143         throw( DWFException );
00144 
00145 #ifndef DWFTK_READ_ONLY
00146 
00150     _DWFTK_API
00151     const DWFXMLNamespace& addNamespace( const DWFString& zNamespace, 
00152                                          const DWFString& zXMLNS )
00153         throw( DWFException );
00154 
00158     _DWFTK_API
00159     virtual void serializeXML( DWFXMLSerializer& rSerializer, unsigned int nFlags )
00160         throw( DWFException );
00161 
00162 private:
00163 
00164     void serializeAttributes( DWFXMLSerializer& rSerializer, unsigned int nFlags )
00165         throw( DWFException );
00166 
00167 private:
00168 
00169     typedef std::map<DWFString, DWFXMLNamespace>    _tNamespaceMap;
00170     _tNamespaceMap                                  _oAddedNamespaces;
00171 
00172 #endif
00173 
00174 private:
00175 
00176     void _preProcessHandler (DWFModelSceneChangeHandler* pHandler)
00177         throw( DWFException );
00178 
00179 private:
00180 
00181     unsigned int            _nResetFlags;
00182     bool                    _bInstancePreviouslyOpen;
00183     DWFString               _zPreviousInstanceID;
00184 };
00185 
00186 }
00187 
00188 #endif

Generated on Tue Jan 6 22:40:02 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5