Category Graphics and model display, Object ProGraphics

Function ProGraphicsColorModify


Description
Changes the color used to draw any subsequent graphics.
Replacement in Object TOOLKIT: wfcWDisplay::ModifyGraphicsColor
Synopsis
#include <ProGraphic.h>
ProErrorProGraphicsColorModify(
ProColor* new_color
/* (In)
The new color to use when drawing a graphics entity. If the method is PRO_COLOR_METHOD_DEFAULT, graphics will be drawn using PRO_DRAWING_COLOR. If NULL, no change will be made, but the function outputs the current color in the output argument.
*/
ProColor* p_old_color
/* (Out)
The previous color. May be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully changed the color.
PRO_TK_NO_CHANGEThe current color is the same as the new color.
PRO_TK_BAD_INPUTSThe input argument is invalid.

Manual References:

  1. User Interface: Basic Graphics: Setting Colors to Desired Values
  2. User Interface: Basic Graphics: Setting Colors to Match Existing Entities

Sample Code References:

  1. pt_examples ( TestSolid.c )
  2. pt_examples ( TestSolid.c )
  3. pt_examples ( TestSolid.c )
  4. pt_examples ( TestExtrude.c )
  5. pt_examples ( TestExtrude.c )
  6. pt_examples ( TestExtrude.c )
  7. pt_examples ( TestExtrude.c )
  8. pt_examples ( TestExtrude.c )
  9. pt_examples ( TestExtrude.c )
  10. pt_examples ( TestExtrude.c )
  11. pt_examples ( TestExtrude.c )
  12. pt_examples ( TestExtrude.c )
  13. pt_examples ( TestExtrude.c )
  14. pt_examples ( TestExtrude.c )
  15. pt_examples ( TestExtrude.c )
  16. pt_examples ( TestGeom.c )
  17. pt_examples ( TestGeom.c )
  18. pt_examples ( TestGeom.c )
  19. pt_examples ( TestGeom.c )
  20. pt_examples ( TestGeom.c )
  21. pt_examples ( TestGeom.c )
  22. pt_examples ( TestGeom.c )
  23. pt_examples ( TestGeom.c )
  24. pt_examples ( TestDrawTbl.c )
  25. pt_examples ( TestDrawTbl.c )
  26. pt_examples ( TestDrawTbl.c )
  27. pt_examples ( TestDrawTbl.c )
  28. pt_examples ( TestDrawTbl.c )
  29. pt_examples ( TestDrawTbl.c )
  30. pt_examples ( TestGraphics.c )
  31. pt_examples ( TestGraphics.c )
  32. pt_examples ( TestGraphics.c )
  33. pt_examples ( TestRay.c )
  34. pt_examples ( TestRay.c )
  35. pt_userguide ( UgGraphColorsAdjust.c )
  36. pt_userguide ( UgGraphColorsAdjust.c )
  37. pt_userguide ( UgGraphColorsAdjust.c )
  38. pt_userguide ( UgModelCheck.c )
  39. pt_userguide ( UgModelCheck.c )
  40. pt_userguide ( UgXsecMassProps.c )
  41. pt_userguide ( UgXsecMassProps.c )