#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 TBRIK_DECL_VIRT(Type) \ #define TBRIK_DECL_NONVIRT(Type) \ Type##_p Type##_newTBRIK ( const char* name, const char* title, const char* material, float dx, float dy, float dz ); #define TBRIK_DECL_ACCESSOR(Type) \ #define TBRIK_DEF_VIRT(Type) \ #define TBRIK_DEF_NONVIRT(Type) \ Type##_p Type##_newTBRIK ( const char* name, const char* title, const char* material, float dx, float dy, float dz ) {\ Type* newp=new Type(name, title, material, dx, dy, dz);return from_nonconst_to_nonconst(newp);\ } #define TBRIK_DEF_ACCESSOR(Type) \ TSHAPE_DECL_VIRT(TBRIK) TNAMED_DECL_VIRT(TBRIK) TATTLINE_DECL_VIRT(TBRIK) TATTFILL_DECL_VIRT(TBRIK) TATT3D_DECL_VIRT(TBRIK) TOBJECT_DECL_VIRT(TBRIK) DELETABLE_DECL_VIRT(TBRIK) TBRIK_DECL_VIRT(TBRIK) TBRIK_DECL_NONVIRT(TBRIK) TBRIK_DECL_ACCESSOR(TBRIK) #ifdef __cplusplus } #endif