XamlPolyLineSegment.h

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 #if !defined XAML_POLYLINESEGMENT
00019 #define XAML_POLYLINESEGMENT
00020 
00021 #include "XAML/XamlDrawable.h"
00022 #include "XAML/XamlGraphicsObject.h"
00023 #include "XAML/XamlPointset.h"
00024 #include "XAML/MemoryBuffer.h"
00025 
00026 class XamlPolylineSegment : public XamlGraphicsObject
00027 {
00028 public:
00029     XamlPolylineSegment(const WT_XAML_Point_Set_Data& pointSet, bool bIsClosed = false);
00030     virtual ~XamlPolylineSegment(void) throw();
00031 
00032     teGraphicsObjectType type() { return XamlGraphicsObject::PolylineSegment; }
00033 
00034     virtual void setWriteStart(bool b) { _bIsWriteStart = b; }
00035     virtual WT_Result   serializeAttributeValue( WT_XAML_File &rFile, tMemoryBuffer*& rpBuffer ) const;
00036 
00037     bool& closed()                                  { return _bIsClosed; }
00038     const bool& closed() const                      { return _bIsClosed; }
00039     const WT_XAML_Point_Set_Data& pointSet() const  { return _oPointSet; }
00040 
00041 private:
00042     WT_XAML_Point_Set_Data    _oPointSet;
00043     bool                      _bIsWriteStart;
00044     bool                      _bIsClosed;
00045 
00046 };
00047 
00048 #endif //XAML_POLYLINESEGMENT

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