Revision: 56538
http://sourceforge.net/p/brlcad/code/56538
Author: brlcad
Date: 2013-08-04 22:25:21 +0000 (Sun, 04 Aug 2013)
Log Message:
-----------
eliminate the 'redraw_vlist' command completely in favor of just re-issuing the
'draw' command again. looks like it might not even be working any more, but
lets even more code get consolidated.
Modified Paths:
--------------
brlcad/trunk/CHANGES
brlcad/trunk/doc/docbook/system/mann/en/CMakeLists.txt
brlcad/trunk/doc/docbook/system/mann/en/apropos.xml
brlcad/trunk/doc/docbook/system/mann/en/center.xml
brlcad/trunk/doc/html/manuals/mged/mged_cmd_index.html
brlcad/trunk/src/mged/cmd.h
brlcad/trunk/src/mged/dodraw.c
brlcad/trunk/src/mged/setup.c
brlcad/trunk/src/tclscripts/mged/help.tcl
Removed Paths:
-------------
brlcad/trunk/doc/docbook/system/mann/en/redraw_vlist.xml
Modified: brlcad/trunk/CHANGES
===================================================================
--- brlcad/trunk/CHANGES 2013-08-04 22:21:27 UTC (rev 56537)
+++ brlcad/trunk/CHANGES 2013-08-04 22:25:21 UTC (rev 56538)
@@ -898,3 +898,5 @@
renamed rt_g global to RTG so it doesn't match the struct name [7.24]
s/rt_functab\[/OBJ\[/g
renamed rt_functab global to OBJ so it doesn't match the struct name
[7.24]
+s/redraw_vlist/draw/g
+ removed redraw_vlist mged command, just call draw or refresh [7.24]
Modified: brlcad/trunk/doc/docbook/system/mann/en/CMakeLists.txt
===================================================================
--- brlcad/trunk/doc/docbook/system/mann/en/CMakeLists.txt 2013-08-04
22:21:27 UTC (rev 56537)
+++ brlcad/trunk/doc/docbook/system/mann/en/CMakeLists.txt 2013-08-04
22:25:21 UTC (rev 56538)
@@ -176,7 +176,6 @@
rcodes.xml
read_muves.xml
red.xml
- redraw_vlist.xml
refresh.xml
regdebug.xml
regdef.xml
Modified: brlcad/trunk/doc/docbook/system/mann/en/apropos.xml
===================================================================
--- brlcad/trunk/doc/docbook/system/mann/en/apropos.xml 2013-08-04 22:21:27 UTC
(rev 56537)
+++ brlcad/trunk/doc/docbook/system/mann/en/apropos.xml 2013-08-04 22:25:21 UTC
(rev 56538)
@@ -44,7 +44,7 @@
</para>
<para>
<literallayout class="normal">
-build_region eac edcodes edcomb em idents item lm r rcodes read_muves red
redraw_vlist
+build_region eac edcodes edcomb em idents item lm r rcodes read_muves red
regdef regions reid remat summary wcodes whatid whichair whichid
</literallayout>
</para>
Modified: brlcad/trunk/doc/docbook/system/mann/en/center.xml
===================================================================
--- brlcad/trunk/doc/docbook/system/mann/en/center.xml 2013-08-04 22:21:27 UTC
(rev 56537)
+++ brlcad/trunk/doc/docbook/system/mann/en/center.xml 2013-08-04 22:25:21 UTC
(rev 56538)
@@ -106,7 +106,7 @@
</variablelist>
</example>
<example><title>Update the vertex of a shape in the database to be located
at the current
- center of the view and recreate the vector display lists of objects that
were affected by the change.</title>
+ view center.</title>
<variablelist>
<varlistentry>
@@ -117,16 +117,6 @@
<term><prompt>mged</prompt> <userinput>db adjust sphere.s V
[center]</userinput></term>
<listitem><para/></listitem>
</varlistentry>
- <varlistentry>
- <term><prompt>mged</prompt> <userinput>redraw_vlist
sphere.s</userinput></term>
- <listitem>
- <para>
- Updates the "V" vertex of shape sphere.s in the database to be
located at
- the current center of the view, and recreates the vector display
lists of
- only those object(s) that were affected by the change.
- </para>
- </listitem>
- </varlistentry>
</variablelist>
</example>
</refsection>
Deleted: brlcad/trunk/doc/docbook/system/mann/en/redraw_vlist.xml
===================================================================
--- brlcad/trunk/doc/docbook/system/mann/en/redraw_vlist.xml 2013-08-04
22:21:27 UTC (rev 56537)
+++ brlcad/trunk/doc/docbook/system/mann/en/redraw_vlist.xml 2013-08-04
22:25:21 UTC (rev 56538)
@@ -1,52 +0,0 @@
-<!-- Converted by db4-upgrade version 1.0 -->
-
-<refentry xmlns="http://docbook.org/ns/docbook" version="5.0"
xml:id="redraw_vlist">
-
-<refmeta>
- <refentrytitle>REDRAW_VLIST</refentrytitle>
- <manvolnum>nged</manvolnum>
- <refmiscinfo class="source">BRL-CAD</refmiscinfo>
- <refmiscinfo class="manual">BRL-CAD User Commands</refmiscinfo>
-</refmeta>
-
-<refnamediv xml:id="name">
- <refname>redraw_vlist</refname>
- <refpurpose>Given the name(s) of database objects, regenerate the vlist
associated with every
- shape in view that references the named object(s), either shapes or
regions.
- </refpurpose>
-</refnamediv>
-
-<!-- body begins here -->
-<refsynopsisdiv xml:id="synopsis">
- <cmdsynopsis sepchar=" ">
- <command>redraw_vlist</command>
- <arg choice="req" rep="norepeat"><replaceable>object</replaceable></arg>
- </cmdsynopsis>
-</refsynopsisdiv>
-
-<refsection xml:id="description"><title>DESCRIPTION</title>
-
- <para>Given the name(s) of database objects, regenerate the vlist associated
with every
- shape in view that references the named object(s), either shapes or
regions.
- Particularly useful with outboard .inmem database modifications.
- </para>
-</refsection>
-
-<refsection xml:id="examples"><title>EXAMPLES</title>
-
- <para>No example provided for this command.
-
- </para>
-
-</refsection>
-
-<refsection xml:id="author"><title>AUTHOR</title><para>BRL-CAD
Team</para></refsection>
-
-<refsection xml:id="bug_reports"><title>BUG REPORTS</title>
-
- <para>
- Reports of bugs or problems should be submitted via electronic
- mail to <[email protected]>, or via the "cadbug.sh" script.
- </para>
-</refsection>
-</refentry>
Modified: brlcad/trunk/doc/html/manuals/mged/mged_cmd_index.html
===================================================================
--- brlcad/trunk/doc/html/manuals/mged/mged_cmd_index.html 2013-08-04
22:21:27 UTC (rev 56537)
+++ brlcad/trunk/doc/html/manuals/mged/mged_cmd_index.html 2013-08-04
22:25:21 UTC (rev 56538)
@@ -365,8 +365,6 @@
<FONT SIZE=2><P></FONT><A HREF="#read_muves"><FONT
SIZE=2>read_muves</FONT></A></TD>
<TD WIDTH="20%" VALIGN="MIDDLE">
<FONT SIZE=2><P></FONT><A HREF="#red"><FONT SIZE=2>red</FONT></A></TD>
-<TD WIDTH="22%" VALIGN="MIDDLE">
-<FONT SIZE=2><P></FONT><A HREF="#redraw_vlist"><FONT
SIZE=2>redraw_vlist</FONT></A></TD>
<TD WIDTH="21%" VALIGN="MIDDLE">
<FONT SIZE=2><P></FONT><A HREF="#refresh"><FONT SIZE=2>refresh</FONT></A></TD>
</TR>
@@ -1032,9 +1030,7 @@
</B><FONT SIZE=2><P><BR>
</FONT><TT>mged></TT><FONT SIZE=2> <B>db adjust sphere.s V [center]</B> </P>
-<P><BR>
-</FONT><TT>mged></TT><FONT SIZE=2> <B>redraw_vlist sphere.s</B> <BR>
--- Update the "V" vertex of shape sphere.s in the database to be
located at the current center of the view, and recreate the vector display
lists of only those object(s) that were affected by the change. </P></DIR>
+</DIR>
<P><HR ALIGN="RIGHT"></P>
</FONT><B><DL>
@@ -2708,11 +2704,6 @@
<P><HR ALIGN="RIGHT"></P>
</FONT><B><DL>
-<DT><A NAME="redraw_vlist"></A>redraw_vlist</B> <I>object</DT>
-</I><DD>Given the name(s) of database objects, re-generate the vlist
associated with every shape in view that references the named object(s), either
shapes or regions. Particularly useful with outboard .inmem database
modifications.</DD>
-</DL>
-<FONT SIZE=2><P><HR ALIGN="RIGHT"></P>
-</FONT><B><DL>
<DT><A NAME="refresh"></A>refresh</DT>
</B><DD>The "refresh" command updates the MGED display.</DD>
<FONT SIZE=4><DT>Examples:</DT>
Modified: brlcad/trunk/src/mged/cmd.h
===================================================================
--- brlcad/trunk/src/mged/cmd.h 2013-08-04 22:21:27 UTC (rev 56537)
+++ brlcad/trunk/src/mged/cmd.h 2013-08-04 22:25:21 UTC (rev 56538)
@@ -77,7 +77,6 @@
extern int cmd_parse_points(ClientData, Tcl_Interp *, int, const char *[]);
extern int cmd_pov(ClientData, Tcl_Interp *, int, const char *[]);
extern int cmd_put(ClientData, Tcl_Interp *, int, const char *[]);
-extern int cmd_redraw_vlist(ClientData, Tcl_Interp *, int, const char *[]);
extern int cmd_rot(ClientData, Tcl_Interp *, int, const char *[]);
extern int cmd_rrt(ClientData, Tcl_Interp *, int, const char *[]);
extern int cmd_rt(ClientData, Tcl_Interp *, int, const char *[]);
Modified: brlcad/trunk/src/mged/dodraw.c
===================================================================
--- brlcad/trunk/src/mged/dodraw.c 2013-08-04 22:21:27 UTC (rev 56537)
+++ brlcad/trunk/src/mged/dodraw.c 2013-08-04 22:25:21 UTC (rev 56538)
@@ -472,58 +472,7 @@
bu_vls_free(&str);
}
-
-/*
- * Given the name(s) of database objects, re-generate the vlist
- * associated with every solid in view which references the
- * named object(s), either solids or regions.
- * Particularly useful with outboard .inmem database modifications.
- */
int
-cmd_redraw_vlist(ClientData UNUSED(clientData), Tcl_Interp *interp, int argc,
const char *argv[])
-{
- struct ged_display_list *gdlp;
- struct ged_display_list *next_gdlp;
- struct directory *dp;
- int i;
-
- CHECK_DBI_NULL;
-
- if (argc < 2) {
- struct bu_vls vls = BU_VLS_INIT_ZERO;
-
- bu_vls_printf(&vls, "help redraw_vlist");
- Tcl_Eval(interp, bu_vls_addr(&vls));
- bu_vls_free(&vls);
- return TCL_ERROR;
- }
-
- for (i = 1; i < argc; i++) {
- struct solid *sp;
-
- if ((dp = db_lookup(dbip, argv[i], LOOKUP_NOISY)) == NULL)
- continue;
-
- gdlp = BU_LIST_NEXT(ged_display_list, gedp->ged_gdp->gd_headDisplay);
- while (BU_LIST_NOT_HEAD(gdlp, gedp->ged_gdp->gd_headDisplay)) {
- next_gdlp = BU_LIST_PNEXT(ged_display_list, gdlp);
-
- FOR_ALL_SOLIDS(sp, &gdlp->gdl_headSolid) {
- if (db_full_path_search(&sp->s_fullpath, dp)) {
- (void)replot_original_solid(sp);
- sp->s_iflag = DOWN; /* It won't be drawn otherwise */
- }
- }
-
- gdlp = next_gdlp;
- }
- }
-
- update_views = 1;
- return TCL_OK;
-}
-
-int
redraw_visible_objects(void)
{
int ret, ac = 1;
Modified: brlcad/trunk/src/mged/setup.c
===================================================================
--- brlcad/trunk/src/mged/setup.c 2013-08-04 22:21:27 UTC (rev 56537)
+++ brlcad/trunk/src/mged/setup.c 2013-08-04 22:25:21 UTC (rev 56538)
@@ -283,7 +283,6 @@
{"read_muves", f_read_muves, GED_FUNC_PTR_NULL},
{"rear", f_bv_rear, GED_FUNC_PTR_NULL},
{"red", f_red, GED_FUNC_PTR_NULL},
- {"redraw_vlist", cmd_redraw_vlist, GED_FUNC_PTR_NULL},
{"refresh", f_refresh, GED_FUNC_PTR_NULL},
{"regdebug", f_regdebug, GED_FUNC_PTR_NULL},
{"regdef", cmd_ged_plain_wrapper, ged_regdef},
Modified: brlcad/trunk/src/tclscripts/mged/help.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/mged/help.tcl 2013-08-04 22:21:27 UTC (rev
56537)
+++ brlcad/trunk/src/tclscripts/mged/help.tcl 2013-08-04 22:25:21 UTC (rev
56538)
@@ -263,10 +263,6 @@
set mged_help_data(rcodes) {{filename} {read region ident codes from
filename}}
set mged_help_data(read_muves) {{MUVES_regionmap_file [sysdef_file]}
{DEPRECATED: read the MUVES region_map file and optionally the sysdef file}}
set mged_help_data(red) {{object} {edit a group or region
using a text editor}}
-set mged_help_data(redraw_vlist) {{object(s)} {given the name(s) of
database objects, re-generate the vlist
- associated with every solid in view which references the
- named object(s), either solids or regions. Particularly
- useful with outboard .inmem database modifications.}}
set mged_help_data(refresh) {{} {send new control list}}
set mged_help_data(regdebug) {{[number]} {toggle display manager
debugging or set debug level}}
set mged_help_data(regdef) {{ident [air [los [material]]]} {change next
region default codes}}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits