vclight.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "vclight.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "VcLightSources.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CVcLight properties
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CVcLight operations
  12. float CVcLight::GetAmbientIntensity()
  13. {
  14. float result;
  15. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  16. return result;
  17. }
  18. void CVcLight::SetAmbientIntensity(float newValue)
  19. {
  20. static BYTE parms[] =
  21. VTS_R4;
  22. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  23. newValue);
  24. }
  25. float CVcLight::GetEdgeIntensity()
  26. {
  27. float result;
  28. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  29. return result;
  30. }
  31. void CVcLight::SetEdgeIntensity(float newValue)
  32. {
  33. static BYTE parms[] =
  34. VTS_R4;
  35. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  36. newValue);
  37. }
  38. BOOL CVcLight::GetEdgeVisible()
  39. {
  40. BOOL result;
  41. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  42. return result;
  43. }
  44. void CVcLight::SetEdgeVisible(BOOL bNewValue)
  45. {
  46. static BYTE parms[] =
  47. VTS_BOOL;
  48. InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  49. bNewValue);
  50. }
  51. CVcLightSources CVcLight::GetLightSources()
  52. {
  53. LPDISPATCH pDispatch;
  54. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
  55. return CVcLightSources(pDispatch);
  56. }