Tube_def.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* Tube_def.h
  2. *
  3. * Copyright (C) 1994-2011 David Weenink
  4. *
  5. * This code is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This code is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #define ooSTRUCT Tube_Frame
  19. oo_DEFINE_STRUCT (Tube_Frame)
  20. oo_INT16 (nSegments)
  21. oo_DOUBLE (length)
  22. oo_DOUBLE_VECTOR (c, nSegments)
  23. oo_END_STRUCT (Tube_Frame)
  24. #undef ooSTRUCT
  25. #define ooSTRUCT Tube
  26. oo_DEFINE_CLASS (Tube, Sampled)
  27. oo_INT16 (maxnSegments)
  28. oo_STRUCT_VECTOR (Tube_Frame, frame, nx)
  29. #if oo_DECLARING
  30. void v_info ()
  31. override;
  32. #endif
  33. oo_END_CLASS (Tube)
  34. #undef ooSTRUCT
  35. /* End of file Tube_def.h */