Go to Google Code Home
Google SketchUp SkpReader C++ API Documentation (Labs)

Public Member Functions

ISkpHLRWriter Interface Reference

Client exporters that support HLR output implement this interface. More...

List of all members.

Public Member Functions

HRESULT StoreSegment ([in]OLE_COLOR color,[in] BOOL bSilhouette,[in]double *pFromPoint3d,[in]double *pToPoint3d)
 Store a single linear segment.
HRESULT StoreSliceSegment ([in]OLE_COLOR color,[in]double *pFromPoint3d,[in]double *pToPoint3d)
 Store a single linear slice (section) segment.
HRESULT StoreFace ([in]OLE_COLOR color,[in]ISkpFace *pOutputFace)
 Store a closed planar polygonal face.
HRESULT StoreText ([in]double *originPoint3d,[in]double *xAxisPoint3d,[in]double *yAxisPoint3d,[in]double width,[in]double height,[in]BOOL bItalic,[in]BOOL bBold,[in]BSTR fontFace,[in]BSTR line,[in]OLE_COLOR color)
 Store text as a text string.
HRESULT StoreTextWithFont ([in]double *originPoint3d,[in]double *xAxisPoint3d,[in]double *yAxisPoint3d,[in]double width,[in]double height,[in]ISkpFont *font,[in]BSTR line,[in]OLE_COLOR color)
 Store text as a text string with the given font.

Detailed Description

Client exporters that support HLR output implement this interface.

To export HLR, a client must implement this interface, then use the ISkpHLRGeneration interface to initiate the HLR generation process.

See also:
ISkpHLRGeneration

Member Function Documentation

HRESULT ISkpHLRWriter::StoreFace ( [in] OLE_COLOR  color,
[in] ISkpFace pOutputFace 
)

Store a closed planar polygonal face.

The polygon is encapsulated in a ISkpFace object and is transformed to the specified view.

Parameters:
color The color that the segment should be drawn in.
pOutputFace The face to write out
Returns:
S_OK : if successful
E_POINTER : if any of the inputs is NULL.
E_FAIL: Internal errors.
HRESULT ISkpHLRWriter::StoreSegment ( [in] OLE_COLOR  color,
[in] BOOL  bSilhouette,
[in] double *  pFromPoint3d,
[in] double *  pToPoint3d 
)

Store a single linear segment.

Parameters:
color The color that the segment should be drawn in.
bSilhouette if true indicates that the edge is a profile edge.
pFromPoint3d coordinates of the ends of the visible portion of the edge (2D - transformed to the specified view)
pToPoint3d coordinates of the ends of the visible portion of the edge (2D - transformed to the specified view)
Returns:
S_OK : if successful
E_POINTER : if any of the inputs is NULL.
E_FAIL: Internal errors.
HRESULT ISkpHLRWriter::StoreSliceSegment ( [in] OLE_COLOR  color,
[in] double *  pFromPoint3d,
[in] double *  pToPoint3d 
)

Store a single linear slice (section) segment.

Parameters:
color The color that the segment should be drawn in.
pFromPoint3d coordinates of the ends of the visible portion of the edge (2D - transformed to the specified view)
pToPoint3d coordinates of the ends of the visible portion of the edge (2D - transformed to the specified view)
Returns:
S_OK : if successful
E_POINTER : if any of the inputs is NULL.
E_FAIL: Internal errors.
HRESULT ISkpHLRWriter::StoreText ( [in] double *  originPoint3d,
[in] double *  xAxisPoint3d,
[in] double *  yAxisPoint3d,
[in] double  width,
[in] double  height,
[in] BOOL  bItalic,
[in] BOOL  bBold,
[in] BSTR  fontFace,
[in] BSTR  line,
[in] OLE_COLOR  color 
)

Store text as a text string.

Parameters:
originPoint3d The array of 3 doubles holding the origin point of the text.
xAxisPoint3d The array of 3 doubles holding the xAxis of the text.
yAxisPoint3d The array of 3 doubles holding the yAxis of the text.
width The width of the text.
height The height of the text.
bItalic TRUE iff the text is rendered using italics.
bBold TRUE iff the text is rendered using bold.
fontFace The name of the Font Face.
line The Text to render.
color The color that the segment should be drawn in.
Returns:
S_OK : if successful
E_POINTER : if any of the inputs is NULL.
E_FAIL: Internal errors.
HRESULT ISkpHLRWriter::StoreTextWithFont ( [in] double *  originPoint3d,
[in] double *  xAxisPoint3d,
[in] double *  yAxisPoint3d,
[in] double  width,
[in] double  height,
[in] ISkpFont font,
[in] BSTR  line,
[in] OLE_COLOR  color 
)

Store text as a text string with the given font.

Parameters:
originPoint3d The array of 3 doubles holding the origin point of the text.
xAxisPoint3d The array of 3 doubles holding the xAxis of the text.
yAxisPoint3d The array of 3 doubles holding the yAxis of the text.
width The width of the text.
height The height of the text.
font The ISkpFont.
line The Text to render.
color The color that the segment should be drawn in.
Returns:
S_OK : if successful
E_POINTER : if any of the inputs is NULL.
E_FAIL: Internal errors.

©2010 Google - Google Home - About Google