home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / point.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  1.3 KB  |  69 lines

  1. //**********************************************************************
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995
  4. //  All rights reserved.
  5. //  FILE:   POINT.HPP
  6. //
  7. //  DESCRIPTION
  8. //  This file provides the function prototypes for the 
  9. //  pointClass
  10. //
  11. //  Author: M. Doucet
  12. //
  13. //  Modification History:
  14. //  6/13/95    Created
  15. //
  16. //**********************************************************************
  17. #ifndef _POINT_HPP
  18. #define _POINT_HPP
  19.  
  20. #include "vrtypes.hpp"
  21. #include "vertex.hpp"
  22.  
  23. #ifndef AMBERRT
  24. #include "texture.hpp"
  25. #include "material.hpp"
  26. #endif
  27.  
  28. class geometryClass;
  29. class geometryPrivateClass;
  30. class renderStateClass;
  31.  
  32. class pointClass {
  33.  
  34.     friend class geometryClass;
  35.     friend class geometryPrivateClass;
  36.     friend class renderStateClass;
  37.  
  38. private:
  39.  
  40.     geometryClass *parent;
  41.  
  42. #ifndef AMBERRT
  43.     materialClass *mat;
  44. #endif
  45.  
  46. public:
  47.  
  48.     vertexClass         *vertex;
  49.  
  50.     F4              color;
  51.     void             setColor(F4 col);
  52.  
  53.     // Material Functions
  54.     void setMaterial(materialClass *mat);
  55.     void setMaterial(char *name);
  56.     materialClass *getMaterial();
  57.  
  58.     // Vertex functions
  59.     //
  60.     void         setVertex(vertexClass *v);
  61.     vertexClass *getVertex();
  62.     void         getVertexPos(V3 pos);
  63.  
  64.     pointClass(vertexClass *v=NULL);
  65.     ~pointClass();
  66. };
  67.  
  68. #endif
  69.