Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

StyleSegment.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2005 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 #ifndef _DWFTK_STYLE_SEGMENT_H
00020 #define _DWFTK_STYLE_SEGMENT_H
00021 
00026 
00027 
00028 #ifndef DWFTK_READ_ONLY
00029 
00030 
00031 #include "dwfcore/String.h"
00032 using namespace DWFCore;
00033 
00034 #include "dwf/Toolkit.h"
00035 #include "dwf/publisher/model/SegmentHandlerBuilder.h"
00036 #include "dwf/publisher/model/AttributeHandlerBuilder.h"
00037 
00038 
00039 namespace DWFToolkit
00040 {
00041 
00050 class DWFStyleSegment : public DWFToolkitMemory
00051                       , public DWFAttributeHandlerBuilder
00052 {
00053 
00054 public:
00055 
00059     static const char* const kz_Style_Library;
00063     static const char* const kz_StyleSegment_PublishedEdges;
00064 
00065 public:
00066 
00075     _DWFTK_API
00076     DWFStyleSegment( DWFSegmentHandlerBuilder&   rSegmentBuilder,
00077                      DWFAttributeHandlerBuilder& rAttributeBuilder,
00078                      unsigned int                nID )
00079         throw();
00080 
00086     _DWFTK_API
00087     DWFStyleSegment( const DWFStyleSegment& )
00088         throw();
00089 
00095     _DWFTK_API
00096     DWFStyleSegment& operator=( const DWFStyleSegment& )
00097         throw();
00098 
00104     _DWFTK_API
00105     virtual ~DWFStyleSegment()
00106         throw();
00107 
00120     _DWFTK_API
00121     void open()
00122         throw( DWFException );
00123 
00127     _DWFTK_API
00128     void close()
00129         throw( DWFException );
00130 
00139     _DWFTK_API
00140     const DWFString& name() const
00141         throw()
00142     {
00143         return _zName;
00144     }
00145 
00149     _DWFTK_API
00150     TK_Color& getColorHandler()
00151         throw( DWFException );
00152 
00156     _DWFTK_API
00157     TK_Color_Map& getColorMapHandler()
00158         throw( DWFException );
00159 
00163     _DWFTK_API
00164     TK_Color_RGB& getColorRGBHandler()
00165         throw( DWFException );
00166 
00170     _DWFTK_API
00171     TK_Linear_Pattern& getEdgePatternHandler()
00172         throw( DWFException );
00173 
00177     _DWFTK_API
00178     TK_Size& getEdgeWeightHandler()
00179         throw( DWFException );
00180 
00184     _DWFTK_API
00185     TK_Enumerated& getFacePatternHandler()
00186         throw( DWFException );
00187 
00191     _DWFTK_API
00192     TK_Enumerated& getHandednessHandler()
00193         throw( DWFException );
00194 
00198     _DWFTK_API
00199     TK_Heuristics& getHeuristicsHandler()
00200         throw( DWFException );
00201 
00205     _DWFTK_API
00206     TK_Linear_Pattern& getLinePatternHandler()
00207         throw( DWFException );
00208 
00212     _DWFTK_API
00213     TK_Size& getLineWeightHandler()
00214         throw( DWFException );
00215 
00219     _DWFTK_API
00220     TK_Size& getMarkerSizeHandler()
00221         throw( DWFException );
00222 
00226     _DWFTK_API
00227     TK_Enumerated& getMarkerSymbolHandler()
00228         throw( DWFException );
00229 
00233     _DWFTK_API
00234     TK_Matrix& getModellingMatrixHandler()
00235         throw( DWFException );
00236 
00240     _DWFTK_API
00241     TK_Rendering_Options& getRenderingOptionsHandler()
00242         throw( DWFException );
00243 
00247     _DWFTK_API
00248     TK_Selectability& getSelectabilityHandler()
00249         throw( DWFException );
00250 
00254     _DWFTK_API
00255     TK_Enumerated& getTextAlignmentHandler()
00256         throw( DWFException );
00257 
00261     _DWFTK_API
00262     TK_Text_Font& getTextFontHandler()
00263         throw( DWFException );
00264 
00268     _DWFTK_API
00269     TK_Point& getTextPathHandler()
00270         throw( DWFException );
00271 
00275     _DWFTK_API
00276     TK_Size& getTextSpacingHandler()
00277         throw( DWFException );
00278 
00282     _DWFTK_API
00283     TK_User_Options& getUserOptionsHandler()
00284         throw( DWFException );
00285 
00289     _DWFTK_API
00290     TK_Unicode_Options& getUnicodeOptionsHandler()
00291         throw( DWFException );
00292 
00296     _DWFTK_API
00297     TK_Visibility& getVisibilityHandler()
00298         throw( DWFException );
00299 
00300 private:
00301 
00302     bool                        _bOpen;
00303     DWFString                   _zName;
00304     unsigned int                _nID;
00305 
00306     DWFSegmentHandlerBuilder&   _rSegmentBuilder;
00307     DWFAttributeHandlerBuilder& _rAttributeBuilder;
00308 
00309 private:
00310 
00311     //
00312     // Not Implemented
00313     //
00314 
00315     DWFStyleSegment();
00316 };
00317 
00318 
00319     //
00320     // required for win32 dll external linkage
00321     //
00322 #ifdef  _DWFCORE_WIN32_SYSTEM
00323 #ifndef DWFTK_STATIC
00324 
00325 _declspec(selectany) const char* const DWFStyleSegment::kz_Style_Library                = "?Style Library/";
00326 _declspec(selectany) const char* const DWFStyleSegment::kz_StyleSegment_PublishedEdges  = "?Style Library/_dwfw3d_PublishedEdges";
00327 
00328 #endif
00329 #endif
00330 
00331 
00332 }
00333 
00334 
00335 #endif  
00336 #endif

Generated on Tue May 17 12:38:51 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1