00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : R. ALBOU (Oct 1997) 00022 **=======================================================================*/ 00023 00024 /* include files */ 00025 #ifndef _SO_ANNOT_TEXT3_PROPERTY_ 00026 #define _SO_ANNOT_TEXT3_PROPERTY_ 00027 00028 #include <Inventor/nodes/SoNode.h> 00029 #include <Inventor/fields/SoSFEnum.h> 00030 #include <Inventor/fields/SoSFBool.h> 00031 #include <Inventor/fields/SoSFNode.h> 00032 00033 /*----------------------------------------------------------------------------*/ 00034 00061 class SoAnnoText3Property : public SoNode { 00062 00063 SO_NODE_HEADER(SoAnnoText3Property) ; 00064 00065 public: 00066 00068 enum RenderPrintType { 00073 RENDER3D_PRINT_VECTOR, 00078 RENDER3D_PRINT_RASTER, 00086 RENDER2D_PRINT_RASTER 00087 } ; 00088 00090 enum FontSizeHint { 00094 ANNOTATION, 00099 FIT_VECTOR_TEXT 00100 } ; 00101 00105 SoAnnoText3Property() ; 00106 00113 SoSFEnum renderPrintType ; 00120 SoSFBool isCharOrientedRasterPrint ; 00127 SoSFEnum fontSizeHint ; 00128 00135 static void setMaxViewingFontSize( unsigned int size ); 00136 00141 static unsigned int getMaxViewingFontSize(); 00142 00143 private: 00144 00145 virtual void doAction(SoAction *action) ; 00146 virtual void GLRender(SoGLRenderAction *action) ; 00147 virtual void callback(SoCallbackAction *action) ; 00148 virtual void pick(SoPickAction *action) ; 00149 virtual void getBoundingBox(SoGetBoundingBoxAction *action) ; 00150 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action) ; 00151 00152 00153 /*----------------------------------------------------------------------------*/ 00154 private: 00155 // Init the class 00156 static void initClass() ; 00157 static void exitClass() ; 00158 00159 private: 00160 virtual ~SoAnnoText3Property() ; 00161 00162 private: 00163 } ; 00164 00165 /*----------------------------------------------------------------------------*/ 00166 00167 #endif /* _SO_ANNOT_TEXT3_PROPERTY_ */ 00168 00169