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-2020 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 00062 class SoAnnoText3Property : public SoNode { 00063 00064 SO_NODE_HEADER(SoAnnoText3Property) ; 00065 00066 public: 00067 00069 enum RenderPrintType { 00074 RENDER3D_PRINT_VECTOR, 00079 RENDER3D_PRINT_RASTER, 00087 RENDER2D_PRINT_RASTER 00088 } ; 00089 00091 enum FontSizeHint { 00095 ANNOTATION, 00100 FIT_VECTOR_TEXT 00101 } ; 00102 00106 SoAnnoText3Property() ; 00107 00114 SoSFEnum renderPrintType ; 00121 SoSFBool isCharOrientedRasterPrint ; 00128 SoSFEnum fontSizeHint ; 00129 00136 static void setMaxViewingFontSize( unsigned int size ); 00137 00142 static unsigned int getMaxViewingFontSize(); 00143 00144 private: 00145 00146 virtual void doAction(SoAction *action) ; 00147 virtual void GLRender(SoGLRenderAction *action) ; 00148 virtual void callback(SoCallbackAction *action) ; 00149 virtual void pick(SoPickAction *action) ; 00150 virtual void getBoundingBox(SoGetBoundingBoxAction *action) ; 00151 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action) ; 00152 00153 00154 /*----------------------------------------------------------------------------*/ 00155 private: 00156 // Init the class 00157 static void initClass() ; 00158 static void exitClass() ; 00159 00160 private: 00161 virtual ~SoAnnoText3Property() ; 00162 00163 private: 00164 } ; 00165 00166 /*----------------------------------------------------------------------------*/ 00167 00168 #endif /* _SO_ANNOT_TEXT3_PROPERTY_ */ 00169 00170