PEXOCCSetPatternAttributes2D - Set Pattern Interior Style Reference Point (5.0)


Synopsis

 
   void PEXOCCSetPatternAttributes2D(
        PEXOCC context,
        PEXCoord2D *ref_point
   )
 

 
   void PEXSetPatternAttributes2D(
        Display *display,
        XID resource_id,
        PEXOCRequestType req_type,
        PEXCoord2D *ref_point
   )
 

Arguments

context
An OC context returned by a successful PEXCreateOCC call.

display (OCC)
A pointer to a display structure returned by a successful XOpenDisplay call.

resource_id (OCC)
The resource identifier of the renderer or structure.

req_type (OCC)
The request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).

ref_point
The pattern reference point.

Returns

None.

Description

Invoke PEXOCCSetPatternAttributes2D to create an attribute output command which sets the pattern reference point and both pattern reference vector attributes, in 2D modeling coordinates, in the renderer's pipeline state.

To determine if your implementation supports PEXInteriorStylePattern, invoke the PEXGetEnumTypeInfo request. If the style is supported, then the pipeline state's interior style index selects an entry of the renderer's pattern table and applies it to fill area primitives of interior style PEXInteriorStylePattern.

The pattern reference point is set to ref_point with a z coordinate of zero. The two pattern reference vectors are set to <1,0,0> and <0,1,0> (see PEXOCCSetPatternAttributes). If you specify the surface interior style as PEXInteriorStylePattern, then the implementation uses the pattern reference point and the reference vectors to position and scale the pattern on the surface.

This function is a member of the styled and shaded surface attribute set.

Errors

BadPEXRenderer
The specified renderer resource identifier is invalid.

BadPEXStructure
The specified structure resource identifier is invalid.

See Also

For an overview and for a list of output attribute functions, see Output Attribute Functions.