IGActiveFreeAttrByID

(grap_gen.c:379)

Prototype:

  void IGActiveFreeAttrByID(IPObjectStruct *PObj, IPAttrIDType AttrID)


Description:

Free attribute ID AttrID from PObj in all object's hierarchy.

Parameters:

PObj: Objects to remove Named attribute from.
AttrID: ID of attribute to remove.


Returned Value:

void


Keywords:




IGActiveFreePolyIsoAttribute

(grap_gen.c:321)

Prototype:

  void IGActiveFreePolyIsoAttribute(IPObjectStruct *PObj,
                                    int FreePolygons,
                                    int FreeIsolines,
                                    int FreeSketches,
                                    int FreeCtlMesh)


Description:

Free attribute named Name from all objects in PObj object's hierarchy.

Parameters:

PObj: Object to remove Named attribute from.
FreePolygons: f TRUE free all polygonal approximations of freeforms.
FreeIsolines: f TRUE free all isocurve approximations of freeforms.
FreeSketches: f TRUE free all sketching strokes of freeforms.
FreeCtlMesh: If TRUE free all control meshes of freeforms.


Returned Value:

void


Keywords:




IGActiveListFreeAttrByID

(grap_gen.c:290)

Prototype:

  void IGActiveListFreeAttrByID(IPObjectStruct *PObjs, IPAttrIDType AttrID)


Description:

Free attribute named Name from all objects in PObjs object's hierarchy.

Parameters:

PObjs: Objects to remove Named attribute from.
AttrID: ID of attribute to remove.


Returned Value:

void


Keywords:




IGActiveListFreePolyIsoAttribute

(grap_gen.c:265)

Prototype:

  void IGActiveListFreePolyIsoAttribute(IPObjectStruct *PObjs,
                                        int FreePolygons,
                                        int FreeIsolines,
                                        int FreeSketches,
                                        int FreeCtlMesh)


Description:

Free attribute named Name from all objects in PObjs object's hierarchy and linked list.

Parameters:

PObjs: Objects to remove Named attribute from.
FreePolygons: f TRUE free all polygonal approximations of freeforms.
FreeIsolines: f TRUE free all isocurve approximations of freeforms.
FreeSketches: f TRUE free all sketching strokes of freeforms.
FreeCtlMesh: If TRUE free all control meshes of freeforms.


Returned Value:

void


Keywords:




IGClearObjTextureMovieAttr

(grap_gen.c:1602)

Prototype:

  void IGClearObjTextureMovieAttr(const IPObjectStruct *PObj)


Description:

Clears all texture/movie attributes, if any from PObj.

Parameters:

PObj: Object to free all texture/movie attributes.


Returned Value:

void


See Also:

IGInitSrfTexture IGInitSrfMovie

Keywords:




IGCnvrtChar2Raster

(draw_str.c:271)

Prototype:

  unsigned char *IGCnvrtChar2Raster(const char c)


Description:

Converts a given text, using a fixed raster font, to a form suitable for drawing in a raster display. In Open GL this can amount to:
    glColor3d(r, g, b);
    glRasterPos2d(x, y);
    glBitmap(8, 8, 0, 0, 10, 0, IGCnvrtChar2Raster('x'));


Parameters:

c: Character to convert.


Returned Value:

unsigned char *: The bit map rasterized


See Also:

IGDrawString

Keywords:




IGConfirmConvexPolys

(grap_gen.c:91)

Prototype:

  void IGConfirmConvexPolys(IPObjectStruct *PObj, int Depth)


Description:


Make sure all polygons are convex.

Parameters:

PObj: Objects to make sure all its polygons are convex.
Depth: Of object hierarchy.


Returned Value:

void


Keywords:




IGDSetDrawPolyFunc

(drawpoly.c:33)

Prototype:

  IGDrawObjectFuncType IGDSetDrawPolyFunc(IGDrawObjectFuncType DrawPolyFunc)


Description:

Sets the polygon drawing call back kroutine.

Parameters:

DrawPolyFunc: New poly drawing routine or NULL to disable.


Returned Value:

IGDrawObjectFuncType: Old poly drawing routine.


Keywords:




IGDecomposeMdlDue2Graphics

(draw_mdl.c:742)

Prototype:

  IPObjectStruct *IGDecomposeMdlDue2Graphics(const IPObjectStruct *PMdls)


Description:

Checks if the Model can be rendered as a monolithic objects or needs to split into trimmed surfaces (as each trimmed surface has different graphics attributes).

Parameters:

PMdls: To check, and possibly decompose.


Returned Value:

IPObjectStruct *: NULL, if can be rendered as a monolithic object, or a list of trimmed surface object if required splitting.


See Also:

IGDecomposeVMdlDue2Graphics

Keywords:




IGDecomposeVMdlDue2Graphics

(drawvmdl.c:734)

Prototype:

  IPObjectStruct *IGDecomposeVMdlDue2Graphics(const IPObjectStruct *PVMdls)


Description:

Checks if the VModel can be rendered as a monolithic objects or needs to split into trimmed surfaces (as each trimmed surface has different graphics attributes).

Parameters:

PVMdls: To check, and possibly decompose.


Returned Value:

IPObjectStruct *: NULL, if can be rendered as a monolithic object, or a list of trimmed surface object if required splitting.


See Also:

IGDecomposeMdlDue2Graphics

Keywords:




IGDefaultProcessEvent

(grap_gen.c:1644)

Prototype:

  int IGDefaultProcessEvent(IGGraphicEventType Event, IrtRType *ChangeFactor)


Description:

Processes the given event. Returns TRUE if redraw of view window is needed.

Parameters:

Event: Event to process.
ChangeFactor: A continuous scale between -1 and 1 to quantify the change to apply according to the event type. For composed operation contains both X and Y information.


Returned Value:

int: TRUE if refresh is needed.


See Also:

IGHandleContinuousMotion

Keywords:




IGDefaultStateHandler

(grap_gen.c:1771)

Prototype:

  int IGDefaultStateHandler(int State, int StateStatus, int Refresh)


Description:

Handle the event of a pop up window. This is the default handler which can be invoked by other specific handlers for event they do not care about.

Parameters:

State: State event type to handle.
StateStatus: G_STATE_OFF, IG_STATE_ON, IG_STATE_TGL for turning off, on or toggling current value. IG_STATE_DEC and IG_STATE_INC serves as dec./inc. factors.
Refresh: Not used.


Returned Value:

int: TRUE if needs to refresh.


Keywords:




IGDeleteTexture

(grap_gen.c:1440)

Prototype:

  int IGDeleteTexture(const IPObjectStruct *PObj)


Description:

Deletes the texture mapping function of an object.

Parameters:

PObj: Object to delete texture from. Attributes might be affected.


Returned Value:

int: TRUE if was texture, FALSE otherwise.


Keywords:




IGDrawCurve

(draw_crv.c:36)

Prototype:

  void IGDrawCurve(IPObjectStruct *PObj)


Description:

Draw a single Curve object using current modes and transformations. Curve must be with either E3 or P3 point type and must be a NURB curve. Piecewise linear approximation is cashed under "_isoline" and "_ctlpoly" attributes of PObj.

Parameters:

PObj: A curve object to draw.


Returned Value:

void


Keywords:




IGDrawCurveGenPolylines

(draw_crv.c:101)

Prototype:

  void IGDrawCurveGenPolylines(const IPObjectStruct *PObj)


Description:

Generates the polyline approximation of the curve on the fly if needed and display it.

Parameters:

PObj: A curve(s) object. Its attributes are likely to be affected.


Returned Value:

void


Keywords:




IGDrawModel

(draw_mdl.c:52)

Prototype:

  void IGDrawModel(IPObjectStruct *PObj, IGDrawObjectFuncType DrawTSrfsFuncPtr)


Description:

Draw a single model object using current modes and transformations. Piecewise linear approximation is cashed under "_isoline" and "_ctlmesh" attributes of PObj. Polygonal approximation is saved under "_polygons".

Parameters:

PObj: A model object to draw.
DrawTSrfsFuncPtr: Optional pointer to a function that will draw the trimmed surfaces, if model is decomposed into trimmed surfaces.


Returned Value:

void


Keywords:




IGDrawModelGenPolygons

(draw_mdl.c:168)

Prototype:

  void IGDrawModelGenPolygons(const IPObjectStruct *PObj)


Description:

Generates the polygonal approximation of the model on the fly if needed and display it.

Parameters:

PObj: A model(s) object.


Returned Value:

void


Keywords:




IGDrawPolyBoundary

(grap_gen.c:797)

Prototype:

  void IGDrawPolyBoundary(IPObjectStruct *PObj)


Description:

Draw the boundary edges of a polygonal object.

Parameters:

PObj: A polygonal object.


Returned Value:

void


Keywords:




IGDrawPolyContours

(grap_gen.c:862)

Prototype:

  void IGDrawPolyContours(IPObjectStruct *PObj)


Description:

Draw XY parallel contours to the given model.

Parameters:

PObj: A polygonal object.


Returned Value:

void


Keywords:




IGDrawPolyContoursSetup

(grap_gen.c:835)

Prototype:

  int IGDrawPolyContoursSetup(IrtRType x, IrtRType y, IrtRType z, int n)


Description:

Setup information for contouring.

Parameters:

x, y, z: Direction of contouring.
n: Number of desired contours.


Returned Value:

int: Old number of contours.


Keywords:




IGDrawPolyDiscontinuities

(grap_gen.c:1078)

Prototype:

  void IGDrawPolyDiscontinuities(IPObjectStruct *PObj)


Description:

Draw the discont edges of an object, if any. PObj can have a "DiscontAngle" attribute with the dihedral angle to consider discontinuous (in degrees).

Parameters:

PObj: A polyline object.


Returned Value:

void


Keywords:




IGDrawPolyIsophotes

(grap_gen.c:999)

Prototype:

  void IGDrawPolyIsophotes(IPObjectStruct *PObj)


Description:

Draw Isophotes from the Z direction to the given model.

Parameters:

PObj: A polygonal object.


Returned Value:

void


Keywords:




IGDrawPolyIsophotesSetup

(grap_gen.c:972)

Prototype:

  int IGDrawPolyIsophotesSetup(IrtRType x, IrtRType y, IrtRType z, int n)


Description:

Setup information for isophotes' drawings.

Parameters:

x, y, z: Direction of isophotes' view.
n: Number of desired isophotes.


Returned Value:

int: Old number of isophotes.


Keywords:




IGDrawPolyKnotLines

(grap_gen.c:1120)

Prototype:

  void IGDrawPolyKnotLines(IPObjectStruct *PObj)


Description:

Draw the knot lines of an object, if any.

Parameters:

PObj: A polyline object.


Returned Value:

void


Keywords:




IGDrawPolySilhBndry

(grap_gen.c:736)

Prototype:

  void IGDrawPolySilhBndry(IPObjectStruct *PObj)


Description:

Draw the boundary and silhouette edges of a polygonal object.

Parameters:

PObj: A polygonal object.


Returned Value:

void


Keywords:




IGDrawPolySilhouette

(grap_gen.c:755)

Prototype:

  void IGDrawPolySilhouette(IPObjectStruct *PObj)


Description:

Draw the silhouette edges of a polygonal object.

Parameters:

PObj: A polygonal object.


Returned Value:

void


Keywords:




IGDrawPolygonSketches

(grap_gen.c:660)

Prototype:

  void IGDrawPolygonSketches(IPObjectStruct *PObj)


Description:

Generates a sketch like drawing of the surface on the fly if needed and display it.

Parameters:

PObj: A surface(s) object.


Returned Value:

void


Keywords:




IGDrawString

(draw_str.c:165)

Prototype:

  void IGDrawString(IPObjectStruct *PObj)


Description:

Draw a single string object using current modes and transformations.

Parameters:

PObj: A string object to draw.


Returned Value:

void


See Also:

IGCnvrtChar2Raster

Keywords:




IGDrawSurface

(draw_srf.c:56)

Prototype:

  void IGDrawSurface(IPObjectStruct *PObj)


Description:

Draw a single surface object using current modes and transformations. Piecewise linear approximation is cashed under "_Isoline??Res" and "_ctlmesh" attributes of PObj. Polygonal approximation is saved under "_Polygons??Res".

Parameters:

PObj: A surface object to draw.


Returned Value:

void


Keywords:




IGDrawSurfaceGenPolygons

(draw_srf.c:186)

Prototype:

  void IGDrawSurfaceGenPolygons(const IPObjectStruct *PObj)


Description:

Generates the polygonal approximation of the surface on the fly if needed and display it.

Parameters:

PObj: A surface(s) object. Note its attributes might be affected.


Returned Value:

void


Keywords:




IGDrawTriangGenSrfPolygons

(drawtris.c:126)

Prototype:

  void IGDrawTriangGenSrfPolygons(const IPObjectStruct *PObj)


Description:

Generates the polygonal approximation of the triangular surface on the fly if needed and display it.

Parameters:

PObj: A triangular surface(s) object.


Returned Value:

void


Keywords:




IGDrawTriangSrf

(drawtris.c:46)

Prototype:

  void IGDrawTriangSrf(IPObjectStruct *PObj)


Description:

Draw a single triangular surface object using current modes and transformations. Piecewise linear approximation is cashed under "_isoline" and "_ctlmesh" attributes of PObj. Polygonal approximation is saved under "_polygons".

Parameters:

PObj: A triangular surface object to draw.


Returned Value:

void


Keywords:




IGDrawTrimSrf

(drawtsrf.c:51)

Prototype:

  void IGDrawTrimSrf(IPObjectStruct *PObj)


Description:

Draw a single trimmed surface object using current modes and transformations. Piecewise linear approximation is cashed under "_isoline" and "_ctlmesh" attributes of PObj. Polygonal approximation is saved under "_polygons".

Parameters:

PObj: A trimmed surface object to draw.


Returned Value:

void


Keywords:




IGDrawTrimSrfGenPolygons

(drawtsrf.c:150)

Prototype:

  void IGDrawTrimSrfGenPolygons(const IPObjectStruct *PObj)


Description:

Generates the polygonal approximation of the trimmed surface on the fly if needed and display it.

Parameters:

PObj: A trimmed surface(s) object.


Returned Value:

void


Keywords:




IGDrawTrivar

(drawtriv.c:47)

Prototype:

  void IGDrawTrivar(IPObjectStruct *PObj)


Description:

Draw a single trivariate function object using current modes and transformations. Piecewise linear approximation is cashed under "_isoline" and "_ctlmesh" attributes of PObj. Polygonal approximation is saved under "_polygons".

Parameters:

PObj: A trivariate function object to draw.


Returned Value:

void


Keywords:




IGDrawTrivarGenSrfPolygons

(drawtriv.c:147)

Prototype:

  void IGDrawTrivarGenSrfPolygons(const IPObjectStruct *PObj)


Description:

Generates the polygonal approximation of the trivariate on the fly if needed and display it.

Parameters:

PObj: A trivariate(s) object.


Returned Value:

void


Keywords:




IGDrawVModel

(drawvmdl.c:53)

Prototype:

  void IGDrawVModel(IPObjectStruct *PObj, IGDrawObjectFuncType DrawTSrfsFuncPtr)


Description:

Draw a single model object using current modes and transformations. Piecewise linear approximation is cashed under "_isoline" and "_ctlmesh" attributes of PObj. Polygonal approximation is saved under "_polygons".

Parameters:

PObj: A model object to draw.
DrawTSrfsFuncPtr: Optional pointer to a function that will draw the trimmed surfaces, if model is decomposed into trimmed surfaces.


Returned Value:

void


Keywords:




IGDrawVModelGenPolygons

(drawvmdl.c:168)

Prototype:

  void IGDrawVModelGenPolygons(const IPObjectStruct *PObj)


Description:

Generates the polygonal approximation of the model on the fly if needed and display it.

Parameters:

PObj: A model(s) object.


Returned Value:

void


Keywords:




IGFindMinimalDist

(grap_gen.c:500)

Prototype:

  IrtRType IGFindMinimalDist(IPObjectStruct *PObj,
                             IPPolygonStruct **MinPl,
                             IrtPtType MinPt,
                             int *MinPlIsPolyline,
                             const IrtPtType LinePos,
                             const IrtVecType LineDir,
                             IrtRType *HitDepth)


Description:

Finds the minimal distance in PObj to the line defined by LinePos and LineDir.

Parameters:

PObj: List of objects to search for a minimal distance.
MinPl: Poly with the minimal distance in PObj.
MinPt: Closest point on the picked object.
MinPlIsPolyline: TRUE if MinPl is a polyline, FALSE if a polygon.
LinePos: A point on the line to test against.
LineDir: The direction of the line.
HitDepth: In case of zero distance (the ray hits a polygon, update the closest depth.


Returned Value:

IrtRType: The minimal distance found to the line.


Keywords:




IGGenPolygonSketches

(grap_gen.c:694)

Prototype:

  IPObjectStruct *IGGenPolygonSketches(IPObjectStruct *PObj, IrtRType FineNess)


Description:

Generates a sketch like drawing for the given object with the prescribed fineness.

Parameters:

PObj: A surface(s) object.
FineNess: Relative fineness to approximate PObj with.


Returned Value:

IPObjectStruct *: The sketch data.


Keywords:




IGGetObjIsoLines

(grap_gen.c:1150)

Prototype:

  IPObjectStruct *IGGetObjIsoLines(const IPObjectStruct *PObj)


Description:

Get the proper isoparametric curve approximation of the object.

Parameters:

PObj: To get the iso curves' approximation


Returned Value:

IPObjectStruct *: The iso curve's approximation.


Keywords:




IGGetObjPolygons

(grap_gen.c:1181)

Prototype:

  IPObjectStruct *IGGetObjPolygons(const IPObjectStruct *PObj)


Description:

Get the proper polygonal approximation of the object.

Parameters:

PObj: To get the polygonal approximation


Returned Value:

IPObjectStruct *: The polygonal approximation.


Keywords:




IGGraphicsStateGet

(grap_gen.c:2428)

Prototype:

  void IGGraphicsStateGet(IGGraphicStateStruct *IGS)


Description:

Get the Irit graphics state.

Parameters:

IGS: Graphics state to fetch.


Returned Value:

void


See Also:

IritGraphStateStruct IGGraphicsStateReset IGGraphicsStateGet

Keywords:




IGGraphicsStateReset

(grap_gen.c:2470)

Prototype:

  void IGGraphicsStateReset(IGGraphicStateStruct *IGS)


Description:

Initializes the Irit graphics state

Parameters:

IGS: Graphics state to initialize.


Returned Value:

void


See Also:

IritGraphStateStruct IGGraphicsStateGet IGGraphicsStateSet

Keywords:




IGGraphicsStateResetDefault

(grap_gen.c:2449)

Prototype:

  void IGGraphicsStateResetDefault(void)


Description:

Reste the default global graphics state.

Parameters:

None


Returned Value:

void


See Also:



Keywords:




IGGraphicsStateSet

(grap_gen.c:2407)

Prototype:

  void IGGraphicsStateSet(const IGGraphicStateStruct *IGS)


Description:

Set an Irit graphics state.

Parameters:

IGS: Graphics state to set.


Returned Value:

void


See Also:

IritGraphStateStruct IGGraphicsStateReset IGGraphicsStateGet

Keywords:




IGInitSrfMovie

(grap_gen.c:1479)

Prototype:

  int IGInitSrfMovie(const IPObjectStruct *PObj)


Description:

Reads in a texture mapping movie if object has "pmovie" attribute and set up the texture movie for further processing.

Parameters:

PObj: Object to extract its texture mapping movie if has one.


Returned Value:

int: TRUE if object has texture mapping movie, FALSE otherwise.


See Also:

IGInitSrfTexture IGClearObjTextureMovieAttr

Keywords:




IGInitSrfTexture

(grap_gen.c:1217)

Prototype:

  int IGInitSrfTexture(const IPObjectStruct *PObj)


Description:

Reads in a texture mapping image if object has "ptexture" attribute and set up the texture for further processing.

Parameters:

PObj: Object to extract its texture mapping function if has one. Note its attributes might be affected.


Returned Value:

int: TRUE if object has texture mapping, FALSE otherwise.


See Also:

IGInitSrfMovie IGClearObjTextureMovieAttr IGInitSrfTextureFromImage

Keywords:




IGInitSrfTextureFromImage

(grap_gen.c:1369)

Prototype:

  int IGInitSrfTextureFromImage(const IPObjectStruct *PObj,
                                int SrfIdx,
                                void *Image,
                                int ImageWidth,
                                int ImageHeight,
                                int ImageAlpha)


Description:

Apply a texture mapping image to object PObj and set up the texture for further processing.

Parameters:

PObj: Object to apply texture mapping image to. Note its attributes might be affected though.
SrfIdx: If PObj is an object with multiple surfaces (e.g. a MODEL), will apply the texture to that surface (First is 1). If -1 will apply to all surfaces in PObj.
Image: Image to apply as texture, either IrtImgRGBAPxlStruct or IrtImgPixelStruct, depending on value of ImageAlpha.
ImageWidth: Width of image to apply.
ImageHeight: eight of image to apply.
ImageAlpha: TRUE if image to apply has Alpha, FALSE otherwise.


Returned Value:

int: TRUE if successful, FALSE otherwise.


See Also:

IGInitSrfTexture

Keywords:




IGLoadGeometry

(grap_gen.c:143)

Prototype:

  IPObjectStruct *IGLoadGeometry(const char **FileNames, int NumFiles)


Description:

Get data. This function also updates the following global variables: + IPViewMat, IPPrspMat are update with the respective matrices, if found. + IPWasViewMat, IPWasPrspMat are set to TRUE if above matrices were found. + IGState.LastProcessMat is updated with the most current matrix value. + IGState.ViewMode is updated with view mode - perspective or orthographic.

Parameters:

FileNames: Names of files from which to read the geometry.
NumFiles: Number of files in array of names FileNames.


Returned Value:

IPObjectStruct *: Read geometry, NULL if error or no geometry.


See Also:

IPGetDataFiles

Keywords:




IGSaveCurrentMat

(grap_gen.c:194)

Prototype:

  void IGSaveCurrentMat(int ViewMode, char *Name)


Description:

Saves the current viewing matrices.

Parameters:

ViewMode: Either perspective or orthographic.
Name: File name to save current view at.


Returned Value:

void


See Also:

IGSubmitCurrentMat

Keywords:




IGSetCtlMeshPostFunc

(grap_gen.c:2381)

Prototype:

  IGDrawUpdateFuncType IGSetCtlMeshPostFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting after control mesh draw.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetCtlMeshPreFunc

(grap_gen.c:2358)

Prototype:

  IGDrawUpdateFuncType IGSetCtlMeshPreFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting before control mesh draw.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetSketchPostFunc

(grap_gen.c:2335)

Prototype:

  IGDrawUpdateFuncType IGSetSketchPostFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting after sketch style draw.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetSketchPreFunc

(grap_gen.c:2312)

Prototype:

  IGDrawUpdateFuncType IGSetSketchPreFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting before sketch style draw.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetSrfPolysPostFunc

(grap_gen.c:2243)

Prototype:

  IGDrawUpdateFuncType IGSetSrfPolysPostFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting after polygons are drawn.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetSrfPolysPreFunc

(grap_gen.c:2219)

Prototype:

  IGDrawUpdateFuncType IGSetSrfPolysPreFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting before polygons are drawn.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetSrfWirePostFunc

(grap_gen.c:2289)

Prototype:

  IGDrawUpdateFuncType IGSetSrfWirePostFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting after wireframe draw.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSetSrfWirePreFunc

(grap_gen.c:2266)

Prototype:

  IGDrawUpdateFuncType IGSetSrfWirePreFunc(IGDrawUpdateFuncType Func)


Description:

Sets a call back function to handle setting before wireframe draw.

Parameters:

Func: ew callback function to use, or NULL to disable.


Returned Value:

IGDrawUpdateFuncType: Old callback function used.


Keywords:




IGSketchDrawPolygons

(sketches.c:791)

Prototype:

  void IGSketchDrawPolygons(IPObjectStruct *PObjSketches)


Description:

Generates a sketch like drawing of the polygonal object, on the fly if needed, and display it.

Parameters:

PObjSketches: A sketches object.


Returned Value:

void


Keywords:




IGSketchDrawSurface

(sketches.c:168)

Prototype:

  void IGSketchDrawSurface(const IPObjectStruct *PObjSketches)


Description:

Generates a sketch like drawing of a surface.

Parameters:

PObjSketches: A sketches object.


Returned Value:

void


Keywords:




IGSketchGenPolyImportanceSketches

(sketches.c:1146)

Prototype:

  IPObjectStruct *IGSketchGenPolyImportanceSketches(IPObjectStruct *PObj,
                                              IGSketchParamStruct *SketchParams,
                                              IrtRType FineNess)


Description:

Precompute the strokes that emphasize important features in the geometry using an importance measure that looks at the diherdal angle of adjacent polygons.

Parameters:

PObj: Polygonal model to process for importance.
SketchParams: PR sketch parameters' info structure.
FineNess: Of marching steps on the surface.


Returned Value:

IPObjectStruct *: Traced strokes as piecewise linear approximations.


See Also:

IGSketchGenPolySketches

Keywords:




IGSketchGenPolySketches

(sketches.c:821)

Prototype:

  IPObjectStruct *IGSketchGenPolySketches(IPObjectStruct *PlObj,
                                          IrtRType FineNess,
                                          int Importance)


Description:

Generates a sketch like drawing for the given polygonal object.

Parameters:

PlObj: The polygonal object to process.
FineNess: Relative fineness to approximate the sketchs of PlObj with.
Importance: f TRUE, we should also compute importance for each point.


Returned Value:

IPObjectStruct *: The sketch data.


See Also:

IGSketchGenPolyImportanceSketches

Keywords:




IGSketchGenSrfSketches

(sketches.c:415)

Prototype:

  IPObjectStruct *IGSketchGenSrfSketches(const CagdSrfStruct *InSrf,
                                         IrtRType FineNess,
                                         const IPObjectStruct *PObj,
                                         int Importance)


Description:

Generates a sketch like drawing for the given surface with the fineness prescribed.

Parameters:

InSrf: Input surface to gene sketch geometry for.
FineNess: Relative fineness to approximate the sketches with.
PObj: Object Srf originated from.
Importance: If TRUE, we should also compute importance for each point.


Returned Value:

IPObjectStruct *: The sketch data.


Keywords:




IGUpdateFPS

(grap_gen.c:2183)

Prototype:

  void IGUpdateFPS(int Start)


Description:

Update the current frame per second.

Parameters:

Start: TRUE to start timing, FALSE to end it.


Returned Value:

void


Keywords:




IGUpdateObjectBBox

(grap_gen.c:420)

Prototype:

  void IGUpdateObjectBBox(IPObjectStruct *PObj)


Description:

Update the BBox of the given object if has none.

Parameters:

PObj: Objects to update its BBOX.


Returned Value:

void


Keywords:




IGUpdateViewConsideringScale

(grap_gen.c:457)

Prototype:

  void IGUpdateViewConsideringScale(IrtHmgnMatType Mat)


Description:

Updates the global view matrix IPViewMat with given matrix Mat while preserving the scaling factor in the original global view.

Parameters:

Mat: .S.F.I.


Returned Value:

void


Keywords: