View Issue Details

IDProjectCategoryView StatusLast Update
0003565Open CASCADEOCCT:Modeling Algorithmspublic2012-01-12 14:54
Reporterszy Assigned Tomkv 
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
OSAll 
Fixed in Version5.1.3 
Summary0003565: Dynamic loading of Draw Commands
DescriptionThe improvement allows dynamic loading of correspondent group of Draw commands
using only one version of Draw executable - DRAWEXE.
The commands groped according existing toolkits. For example:
if yoy want to use V2d or V3d commands corresponding toolkit - all
commands cotained in ViewerTest library will be loaded. To load the
corresponding group of commands it is neccessary to use new <pload> command with
corresponding parameters:
<pload [-PluginFileName] Key1 [[Ke2] ...]>, where
<pload> - command name,
<-PluginFileName> - optional parameter, defines name of Draw resource file used
for plugin implementation mechanism
<Key> - name of requested component. It is mandatory at least one key. Names
must be separated by any combination of < > and <\t>
If <PluginFileName> is not defined the default name = "DrawPlugin" is used.
The environment variable <CSF_DrawPluginDefaults> defines the location of this
file. By default is used the same value as <DRAWHOME>.
The resource file "DrawPlugin" must be filled using ordinary rules of resource
file defined Resource_Manager.cdl file, namely:
<GKey> : <GKey_i> [,<GKey_j> [...]] ! where GKey - group name
<GKey_i> : <GKey_i+1> [,<AKey> [...]] ! where Akey - atomic name
<AKey> : <Name.TK> ! where Name - name of component
<Name.TK : <libName> ! where libName - name of library
                                       ! contained Factory method, that is
                                       ! responsible to load correspondent
                                       ! group of commands
Ane key can be many times redfined according the customer needs. The procedure
search recursively last definition with postfix = <.TK>. It means that this last
line contains at the right part Value = <name of library>.

It is implemented two versions of general mechanism:
1. Tar file DRAWEXE1.tar.gz - where <Factory> method defined in one lib
(toolkit) - TKDraw.
2. Tar file DRAWEXE2.tar.gz - where correspondent <Factory> method defined in
one every draw toolkit.

You can use any version. Both are working as under Unix as under NT.
<src> directory contains sources.
<adm> - tcl scripts to define environment.
<work> - DRAWEXE.bat for NT - starting procedure.
Additional information
and documentation updates
Documentation remark, added by mkv 2004-04-16 09:38:37:

New features:
After loading toolkit with name TKName,
tcl file with name TKName.tcl is eval from directory defined by environment
variable CSF_DrawPluginTclDir.
If CSF_DrawPluginTclDir is omitted then directory defined by environment
variable CSF_<filename>Defaults.
If CSF_<filename>Defaults is omitted then directory it defaults to
$CASROOT/src/DrawResources.
TagsNo tags attached.
Test case number

Attached Files

  • DRAWEXE1.tar.gz (42,920 bytes)
  • DRAWEXE2.tar.gz (66,312 bytes)
  • DrawResources.tar.gz (1,149 bytes)
  • DRAWEXE2-mkv.tar.gz (44,130 bytes)
  • DRAWEXE2-szy.tar.gz (42,923 bytes)
  • DRAWEXE-mkv-v2.tar.gz (64,679 bytes)
  • OCC3565-mkv-v3.tar.gz (9,833 bytes)
  • OCC3565-mkv-v4.tar.gz (14,175 bytes)
  • OCC3565-mkv-v5.tar.gz (1,183 bytes)
  • OCC3565-mkv-v6.tar.gz (34,237 bytes)
  • OCC3565-mkv-v7.tar.gz (12,207 bytes)
  • OCC3565-mkv-v8.tar.gz (6,298 bytes)
  • OCC3565-opt-mkv-v9.tar (28,672 bytes)
  • OCC3565-deb-corr.tgz (629,098 bytes)
  • OCC3565-mkv-v10.tar.gz (3,851 bytes)
  • DrawPlugin (2,076 bytes)
  • OCC3565-mkv-v11.tar.gz (3,521 bytes)
  • OCC3565-mkv-v12.tar.gz (3,545 bytes)
  • Merged_with_5601.tar.gz (2,584 bytes)
  • OCC3565-mkv-v13.tar.gz (9,210 bytes)

Relationships

duplicate of 0003453 closedszy Implementation of one Draw Executable enstead of the several existed 

Activities

2003-08-19 13:20

 

DRAWEXE1.tar.gz (42,920 bytes)

2003-08-19 13:21

 

DRAWEXE2.tar.gz (66,312 bytes)

2003-08-21 08:48

 

DrawResources.tar.gz (1,149 bytes)

2003-08-21 12:41

 

DRAWEXE2-mkv.tar.gz (44,130 bytes)

2003-08-28 10:57

 

DRAWEXE2-szy.tar.gz (42,923 bytes)

2003-09-15 07:39

 

DRAWEXE-mkv-v2.tar.gz (64,679 bytes)

2003-10-10 15:58

 

OCC3565-mkv-v3.tar.gz (9,833 bytes)

2003-10-14 18:23

 

OCC3565-mkv-v4.tar.gz (14,175 bytes)

2003-10-15 11:39

 

OCC3565-mkv-v5.tar.gz (1,183 bytes)

2003-10-17 15:15

 

OCC3565-mkv-v6.tar.gz (34,237 bytes)

2003-10-21 15:32

 

OCC3565-mkv-v7.tar.gz (12,207 bytes)

2003-10-21 16:31

 

OCC3565-mkv-v8.tar.gz (6,298 bytes)

2003-10-23 16:27

 

OCC3565-opt-mkv-v9.tar (28,672 bytes)

2003-10-31 10:25

 

OCC3565-deb-corr.tgz (629,098 bytes)

2003-12-05 10:12

 

OCC3565-mkv-v10.tar.gz (3,851 bytes)

2004-02-25 15:59

 

DrawPlugin (2,076 bytes)

2004-03-23 14:52

 

OCC3565-mkv-v11.tar.gz (3,521 bytes)

2004-03-24 08:58

 

OCC3565-mkv-v12.tar.gz (3,545 bytes)

2004-04-16 14:12

 

Merged_with_5601.tar.gz (2,584 bytes)

bugmaster

2004-05-20 17:31

administrator   ~0006903

*** Bug 3453 has been marked as a duplicate of this bug. ***

2004-10-27 13:41

 

OCC3565-mkv-v13.tar.gz (9,210 bytes)

Issue History

Date Modified Username Field Change
2003-08-19 15:25 bugmaster Assigned To bugmaster => szy
2003-08-19 15:25 bugmaster Status new => assigned
2003-08-19 15:26 bugmaster CC => mkv
2003-08-21 17:03 bugmaster CC => apv
2003-08-25 14:05 bugmaster Status assigned => resolved
2003-09-01 11:07 apv CC => aki
2003-10-03 12:46 bugmaster Status resolved => tested
2003-12-19 15:44 bugmaster Status tested => closed
2003-12-19 15:44 bugmaster Fixed in Version => 5.1.2
2003-12-19 15:44 bugmaster Resolution @0@ => fixed
2004-03-23 18:04 bugmaster Assigned To szy => bugmaster
2004-03-23 18:04 bugmaster Status closed => assigned
2004-03-23 18:04 bugmaster Resolution fixed => @0@
2004-03-23 18:04 bugmaster Assigned To bugmaster => mkk
2004-03-23 18:04 bugmaster Assigned To mkk => mkv
2004-04-15 15:44 bugmaster Status assigned => tested
2004-04-19 13:36 bugmaster Status tested => verified
2004-04-26 11:15 bugmaster Status verified => closed
2004-04-26 11:15 bugmaster Fixed in Version 5.1.2 => 5.1.3
2004-04-26 11:15 bugmaster Resolution @0@ => fixed
2004-05-20 17:31 bugmaster CC => bugmaster
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms
2012-01-12 14:54 ysn Description Updated
2012-01-12 14:54 ysn Additional Information Updated