Skip to content
Snippets Groups Projects
Commit 7272e76d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

change min/max/step depending on 3d status
parent 4308e299
No related branches found
No related tags found
No related merge requests found
// $Id: Annotate.cpp,v 1.9 2005-03-11 05:47:56 geuzaine Exp $
// $Id: Annotate.cpp,v 1.10 2005-03-11 17:25:07 geuzaine Exp $
//
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
//
......@@ -147,20 +147,32 @@ char *GMSH_AnnotatePlugin::callbackStr(int num, int action, char *value, char **
double GMSH_AnnotatePlugin::callbackX(int num, int action, double value)
{
// not perfect: the change will only take place if we reopen the dialog...
int dim3 = (int)AnnotateOptions_Number[3].def;
return callback(num, action, value, &AnnotateOptions_Number[0].def,
0.5, -100., 100000.);
dim3 ? CTX.lc/200. : 0.5,
dim3 ? -CTX.lc : -100.,
dim3 ? CTX.lc : 100000.);
}
double GMSH_AnnotatePlugin::callbackY(int num, int action, double value)
{
// not perfect: the change will only take place if we reopen the dialog...
int dim3 = (int)AnnotateOptions_Number[3].def;
return callback(num, action, value, &AnnotateOptions_Number[1].def,
0.5, -100., 100000.);
dim3 ? CTX.lc/200. : 0.5,
dim3 ? -CTX.lc : -100.,
dim3 ? CTX.lc : 100000.);
}
double GMSH_AnnotatePlugin::callbackZ(int num, int action, double value)
{
// not perfect: the change will only take place if we reopen the dialog...
int dim3 = (int)AnnotateOptions_Number[3].def;
return callback(num, action, value, &AnnotateOptions_Number[2].def,
0.5, -100., 100000.);
dim3 ? CTX.lc/200. : 0.5,
dim3 ? -CTX.lc : -100.,
dim3 ? CTX.lc : 100000.);
}
double GMSH_AnnotatePlugin::callback3D(int num, int action, double value)
......
$Id: VERSIONS,v 1.317 2005-03-11 08:56:38 geuzaine Exp $
$Id: VERSIONS,v 1.318 2005-03-11 17:25:07 geuzaine Exp $
New since 1.59: added support for discrete curves; new Window menu on
Mac OS X; generalized all octree-based plugins (CutGrid, StreamLines,
Probe, etc.) to handle all element types (and not only scalar and
vector triangles+tetrahedra); generalized Plugin(Evaluate) and
Plugin(Extract); enhanced clipping plane interface; new grid options
for 3D post-processing views; new manipulator dialog; various small
enhancements and bug fixes.
vector triangles+tetrahedra); generalized Plugin(Evaluate),
Plugin(Extract) and Plugin(Annotate); enhanced clipping plane
interface; new grid options for 3D post-processing views; new
manipulator dialog; various small enhancements and bug fixes.
New in 1.59: added support for discrete (triangulated) surfaces,
either in STL format or with the new "Discrete Surface" command; added
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment