#ifdef __cplusplus extern "C" { #endif #pragma once #include "HROOT-grafType.h" #include "HROOTGrafTShape.h" #include "HROOTCoreTNamed.h" #include "HROOTCoreTAttLine.h" #include "HROOTCoreTAttFill.h" #include "HROOTCoreTAtt3D.h" #include "HROOTCoreTObject.h" #include "STDDeletable.h" #define TSPHE_DECL_VIRT(Type) \ #define TSPHE_DECL_NONVIRT(Type) \ Type##_p Type##_newTSPHE ( const char* name, const char* title, const char* material, float rmin, float rmax, float themin, float themax, float phimin, float phimax ); #define TSPHE_DECL_ACCESSOR(Type) \ #define TSPHE_DEF_VIRT(Type) \ #define TSPHE_DEF_NONVIRT(Type) \ Type##_p Type##_newTSPHE ( const char* name, const char* title, const char* material, float rmin, float rmax, float themin, float themax, float phimin, float phimax ) {\ Type* newp=new Type(name, title, material, rmin, rmax, themin, themax, phimin, phimax);return from_nonconst_to_nonconst(newp);\ } #define TSPHE_DEF_ACCESSOR(Type) \ TSHAPE_DECL_VIRT(TSPHE) TNAMED_DECL_VIRT(TSPHE) TATTLINE_DECL_VIRT(TSPHE) TATTFILL_DECL_VIRT(TSPHE) TATT3D_DECL_VIRT(TSPHE) TOBJECT_DECL_VIRT(TSPHE) DELETABLE_DECL_VIRT(TSPHE) TSPHE_DECL_VIRT(TSPHE) TSPHE_DECL_NONVIRT(TSPHE) TSPHE_DECL_ACCESSOR(TSPHE) #ifdef __cplusplus } #endif