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

DWFToolkit::DWFStyleSegment Class Reference
[3D Publisher API]

#include "dwf/publisher/model/StyleSegment.h"

Inheritance diagram for DWFToolkit::DWFStyleSegment:

Inheritance graph
[legend]
Collaboration diagram for DWFToolkit::DWFStyleSegment:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a special segment that contains one or more attributes that can be applied as a whole, to other scene segments.
Since:
7.0.1.

Definition at line 50 of file StyleSegment.h.

Public Member Functions

_DWFTK_API DWFStyleSegment (DWFSegmentHandlerBuilder &rSegmentBuilder, DWFAttributeHandlerBuilder &rAttributeBuilder, unsigned int nID) throw ()
_DWFTK_API DWFStyleSegment (const DWFStyleSegment &) throw ()
_DWFTK_API DWFStyleSegmentoperator= (const DWFStyleSegment &) throw ()
virtual _DWFTK_API ~DWFStyleSegment () throw ()
_DWFTK_API void open () throw ( DWFException )
_DWFTK_API void close () throw ( DWFException )
_DWFTK_API const DWFStringname () const throw ()
_DWFTK_API TK_ColorgetColorHandler () throw ( DWFException )
_DWFTK_API TK_Color_MapgetColorMapHandler () throw ( DWFException )
_DWFTK_API TK_Color_RGBgetColorRGBHandler () throw ( DWFException )
_DWFTK_API TK_Linear_PatterngetEdgePatternHandler () throw ( DWFException )
_DWFTK_API TK_SizegetEdgeWeightHandler () throw ( DWFException )
_DWFTK_API TK_EnumeratedgetFacePatternHandler () throw ( DWFException )
_DWFTK_API TK_EnumeratedgetHandednessHandler () throw ( DWFException )
_DWFTK_API TK_HeuristicsgetHeuristicsHandler () throw ( DWFException )
_DWFTK_API TK_Linear_PatterngetLinePatternHandler () throw ( DWFException )
_DWFTK_API TK_SizegetLineWeightHandler () throw ( DWFException )
_DWFTK_API TK_SizegetMarkerSizeHandler () throw ( DWFException )
_DWFTK_API TK_EnumeratedgetMarkerSymbolHandler () throw ( DWFException )
_DWFTK_API TK_MatrixgetModellingMatrixHandler () throw ( DWFException )
_DWFTK_API TK_Rendering_OptionsgetRenderingOptionsHandler () throw ( DWFException )
_DWFTK_API TK_SelectabilitygetSelectabilityHandler () throw ( DWFException )
_DWFTK_API TK_EnumeratedgetTextAlignmentHandler () throw ( DWFException )
_DWFTK_API TK_Text_FontgetTextFontHandler () throw ( DWFException )
_DWFTK_API TK_PointgetTextPathHandler () throw ( DWFException )
_DWFTK_API TK_SizegetTextSpacingHandler () throw ( DWFException )
_DWFTK_API TK_User_OptionsgetUserOptionsHandler () throw ( DWFException )
_DWFTK_API TK_Unicode_OptionsgetUnicodeOptionsHandler () throw ( DWFException )
_DWFTK_API TK_VisibilitygetVisibilityHandler () throw ( DWFException )

Static Public Attributes

static const char *const kz_Style_Library
 The local style library for the scene graph.
static const char *const kz_StyleSegment_PublishedEdges
 The name of the predefined segment for stylizing feature edge segments.


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFStyleSegment::DWFStyleSegment DWFSegmentHandlerBuilder rSegmentBuilder,
DWFAttributeHandlerBuilder rAttributeBuilder,
unsigned int  nID
throw ()
 

Constructor

Parameters:
rSegmentBuilder An interface for acquiring the segment-specific op-code handlers.
rAttributeBuilder An interface for acquiring the attribute-specific op-code handlers.
nID A unique identifier for the segment. Style segments are not explicitly named.
Exceptions:
None 

_DWFTK_API DWFToolkit::DWFStyleSegment::DWFStyleSegment const DWFStyleSegment  )  throw ()
 

Copy Constructor

Exceptions:
None 

virtual _DWFTK_API DWFToolkit::DWFStyleSegment::~DWFStyleSegment  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

_DWFTK_API void DWFToolkit::DWFStyleSegment::close  )  throw ( DWFException )
 

Closes the segment completely and serializes any remaining data and op-codes into the W3D stream.

This segment object will be completely cleaned out and is available for reuse after this method returns.

Exceptions:
DWFException 

_DWFTK_API TK_Color& DWFToolkit::DWFStyleSegment::getColorHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the color attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Color_Map& DWFToolkit::DWFStyleSegment::getColorMapHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the color map attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Color_RGB& DWFToolkit::DWFStyleSegment::getColorRGBHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the RGB color attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Linear_Pattern& DWFToolkit::DWFStyleSegment::getEdgePatternHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the edge pattern attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Size& DWFToolkit::DWFStyleSegment::getEdgeWeightHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the edge weight attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Enumerated& DWFToolkit::DWFStyleSegment::getFacePatternHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the face pattern attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Enumerated& DWFToolkit::DWFStyleSegment::getHandednessHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the polygon handedness attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Heuristics& DWFToolkit::DWFStyleSegment::getHeuristicsHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the scene heuristics attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Linear_Pattern& DWFToolkit::DWFStyleSegment::getLinePatternHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the line pattern attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Size& DWFToolkit::DWFStyleSegment::getLineWeightHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the line weight attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Size& DWFToolkit::DWFStyleSegment::getMarkerSizeHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the marker size attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Enumerated& DWFToolkit::DWFStyleSegment::getMarkerSymbolHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the marker symbol attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Matrix& DWFToolkit::DWFStyleSegment::getModellingMatrixHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the modelling matrix (transform) attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Rendering_Options& DWFToolkit::DWFStyleSegment::getRenderingOptionsHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the rendering options attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Selectability& DWFToolkit::DWFStyleSegment::getSelectabilityHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the object selectability attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Enumerated& DWFToolkit::DWFStyleSegment::getTextAlignmentHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the text alignment attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Text_Font& DWFToolkit::DWFStyleSegment::getTextFontHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the text font attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Point& DWFToolkit::DWFStyleSegment::getTextPathHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the text path attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Size& DWFToolkit::DWFStyleSegment::getTextSpacingHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the text spacing attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Unicode_Options& DWFToolkit::DWFStyleSegment::getUnicodeOptionsHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the Unicode options attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_User_Options& DWFToolkit::DWFStyleSegment::getUserOptionsHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the user options attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API TK_Visibility& DWFToolkit::DWFStyleSegment::getVisibilityHandler  )  throw ( DWFException ) [virtual]
 

Returns a handler for the visibility attribute.

Returns:
A reference to a op-code handler.
Exceptions:
DWFException 

Reimplemented from DWFToolkit::DWFAttributeHandlerBuilder.

_DWFTK_API const DWFString& DWFToolkit::DWFStyleSegment::name  )  const throw () [inline]
 

Returns the internal segment name.

This name is actually the path to the segment in the include library.

Returns:
The internal segment name.
Exceptions:
None 

Definition at line 140 of file StyleSegment.h.

_DWFTK_API void DWFToolkit::DWFStyleSegment::open  )  throw ( DWFException )
 

Opens the segment for use.

The usage model for segments is:

  1. Create or obtain a style segment object.
  2. Open the segment.
  3. Add attributes.
  4. Close the segment.
  5. Repeat. (The same segment object can be reused.)

Exceptions:
DWFException 

_DWFTK_API DWFStyleSegment& DWFToolkit::DWFStyleSegment::operator= const DWFStyleSegment  )  throw ()
 

Assignment Operator

Exceptions:
None 


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:39:15 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1