StyleSegment.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-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 #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 DWFAttributeHandlerBuilder
00051                         _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
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_Camera& getCameraHandler()
00151         throw( DWFException );
00152 
00156     _DWFTK_API
00157     TK_Color& getColorHandler()
00158         throw( DWFException );
00159 
00163     _DWFTK_API
00164     TK_Color_Map& getColorMapHandler()
00165         throw( DWFException );
00166 
00170     _DWFTK_API
00171     TK_Color_RGB& getColorRGBHandler()
00172         throw( DWFException );
00173 
00177     _DWFTK_API
00178     TK_Named& getEdgePatternHandler()
00179         throw( DWFException );
00180 
00184     _DWFTK_API
00185     TK_Size& getEdgeWeightHandler()
00186         throw( DWFException );
00187 
00191     _DWFTK_API
00192     TK_Enumerated& getFacePatternHandler()
00193         throw( DWFException );
00194 
00198     _DWFTK_API
00199     TK_Enumerated& getHandednessHandler()
00200         throw( DWFException );
00201 
00205     _DWFTK_API
00206     TK_Heuristics& getHeuristicsHandler()
00207         throw( DWFException );
00208 
00212     _DWFTK_API
00213     TK_Named& getLinePatternHandler()
00214         throw( DWFException );
00215 
00219     _DWFTK_API
00220     TK_Line_Style& getLineStyleHandler()
00221         throw( DWFException );
00222 
00226     _DWFTK_API
00227     TK_Size& getLineWeightHandler()
00228         throw( DWFException );
00229 
00233     _DWFTK_API
00234     TK_Size& getMarkerSizeHandler()
00235         throw( DWFException );
00236 
00240     _DWFTK_API
00241     TK_Enumerated& getMarkerSymbolHandler()
00242         throw( DWFException );
00243 
00247     _DWFTK_API
00248     TK_Matrix& getModellingMatrixHandler()
00249         throw( DWFException );
00250 
00254     _DWFTK_API
00255     TK_Rendering_Options& getRenderingOptionsHandler()
00256         throw( DWFException );
00257 
00261     _DWFTK_API
00262     TK_Selectability& getSelectabilityHandler()
00263         throw( DWFException );
00264 
00268     _DWFTK_API
00269     TK_Enumerated& getTextAlignmentHandler()
00270         throw( DWFException );
00271 
00275     _DWFTK_API
00276     TK_Text_Font& getTextFontHandler()
00277         throw( DWFException );
00278 
00282     _DWFTK_API
00283     TK_Point& getTextPathHandler()
00284         throw( DWFException );
00285 
00289     _DWFTK_API
00290     TK_Size& getTextSpacingHandler()
00291         throw( DWFException );
00292 
00296     _DWFTK_API
00297     TK_User_Options& getUserOptionsHandler()
00298         throw( DWFException );
00299 
00303     _DWFTK_API
00304     TK_Unicode_Options& getUnicodeOptionsHandler()
00305         throw( DWFException );
00306 
00310     _DWFTK_API
00311     TK_Visibility& getVisibilityHandler()
00312         throw( DWFException );
00313 
00317     _DWFTK_API
00318     TK_Window& getWindowHandler()
00319         throw( DWFException );
00320 
00324     _DWFTK_API
00325     TK_Enumerated& getWindowFrameHandler()
00326         throw( DWFException );
00327 
00331     _DWFTK_API
00332     TK_Enumerated& getWindowPatternHandler()
00333         throw( DWFException );
00334 
00335 private:
00336 
00337     bool                        _bOpen;
00338     DWFString                   _zName;
00339     unsigned int                _nID;
00340 
00341     DWFSegmentHandlerBuilder&   _rSegmentBuilder;
00342     DWFAttributeHandlerBuilder& _rAttributeBuilder;
00343 
00344 private:
00345 
00346     //
00347     // Not Implemented
00348     //
00349 
00350     DWFStyleSegment();
00351 };
00352 
00353 
00354     //
00355     // required for win32 dll external linkage
00356     //
00357 #ifdef  _DWFCORE_WIN32_SYSTEM
00358 #ifndef DWFTK_STATIC
00359 
00360 _declspec(selectany) const char* const DWFStyleSegment::kz_Style_Library                = "?Style Library/";
00361 _declspec(selectany) const char* const DWFStyleSegment::kz_StyleSegment_PublishedEdges  = "?Style Library/_dwfw3d_PublishedEdges";
00362 
00363 #endif
00364 #endif
00365 
00366 
00367 }
00368 
00369 
00370 #endif  
00371 #endif

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