42 #include <visp3/core/vpConfig.h>
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 void fscanf_Remove (Byte *bp)
65 case T_NONE : *bp = IS_INSIDE;
break;
66 case T_ABOVE : *bp |= IS_ABOVE;
break;
67 case T_BACK : *bp |= IS_BACK;
break;
68 case T_BELOW : *bp |= IS_BELOW;
break;
69 case T_FRONT : *bp |= IS_FRONT;
break;
70 case T_LEFT : *bp |= IS_LEFT;
break;
71 case T_RIGHT : *bp |= IS_RIGHT;
break;
73 lexerr (
"start",
"remove: keyword \"none|above|back|below|front|left|right\" expected");
84 void fscanf_View_parameters (View_parameters *vp)
88 skip_keyword (T_TYPE,
"view: keyword \"type\" expected");
94 vp->type = PERSPECTIVE;
97 lexerr (
"start",
"view_type: keyword \"parallel|perspective\" expected");
103 skip_keyword (T_COP,
"view: keyword \"cop\" expected");
104 pusherr (
"view_cop: ");
105 fscanf_Point3f (&vp->cop);
110 skip_keyword (T_VRP,
"view: keyword \"vrp\" expected");
111 pusherr (
"view_vrp: ");
112 fscanf_Point3f (&vp->vrp);
117 skip_keyword (T_VPN,
"view: keyword \"vpn\" expected");
118 pusherr (
"view_vpn: ");
119 fscanf_Vector (&vp->vpn);
124 skip_keyword (T_VUP,
"view: keyword \"vup\" expected");
125 pusherr (
"view_vup: ");
126 fscanf_Vector (&vp->vup);
131 skip_keyword (T_WINDOW,
"view: keyword \"window\" expected");
132 pusherr (
"view_window_umin: ");
133 fscanf_float (&vp->vwd.umin);
134 popuperr (
"view_window_umax: ");
135 fscanf_float (&vp->vwd.umax);
136 popuperr (
"view_window_vmin: ");
137 fscanf_float (&vp->vwd.vmin);
138 popuperr (
"view_window_vmax: ");
139 fscanf_float (&vp->vwd.vmax);
144 skip_keyword (T_DEPTH,
"view: keyword \"depth\" expected");
145 pusherr (
"view_depth_front: ");
146 fscanf_float (&vp->depth.front);
147 popuperr (
"view_depth_back: ");
148 fscanf_float (&vp->depth.back);