From: Eduardo DAVILA Date: Wed, 14 Sep 2022 14:38:26 +0000 (+0200) Subject: MeshManager X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=66d1867d1bcaa2d09a198ac1cebd9790d81cd69d;p=creaMaracasVisu.git MeshManager --- diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbg index b020d67..5c72634 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbg @@ -52,12 +52,12 @@ COMPLEX_PORT meshmanagermodel -131.800179:136.578564:-900.000000 FIN_COMPLEX_PORT -BOXES:35 +BOXES:36 BOX wx:LayoutLine:Box08 ISEXEC:FALSE -191.490538:-129.735971:-900.000000 -33.320000:-132.235971:-900.000000 +-158.170538:-132.235971:-900.000000 FIN_BOX BOX vtk:UpdateRender:Box11 @@ -101,19 +101,19 @@ BOX std:MagicBox:Box67 ISEXEC:FALSE -67.526006:124.007723:-900.000000 -8.680000:121.507723:-900.000000 +-45.926006:121.507723:-900.000000 FIN_BOX BOX vtk:vtkImageDataPointerRelay:Box35 ISEXEC:FALSE -107.091396:123.633118:-900.000000 -6.920000:121.133118:-900.000000 +-83.881396:121.133118:-900.000000 FIN_BOX BOX creaMaracasVisu:PolyDataToActor_Widget:Box37 ISEXEC:FALSE -36.296182:-79.717323:-900.000000 -10.440000:-82.217323:-900.000000 +-13.276182:-82.217323:-900.000000 PORT color:"0 1 1" FIN_BOX @@ -127,7 +127,7 @@ BOX wx:CommandButton:Box42 ISEXEC:FALSE -91.903796:13.441695:-900.000000 -21.000000:10.941695:-900.000000 +-69.628796:10.941695:-900.000000 PORT Label:"Apply (Magenta->To Red)" FIN_BOX @@ -135,7 +135,7 @@ BOX wx:CommandButton:Box43 ISEXEC:FALSE -80.312782:7.645253:-900.000000 -21.000000:5.145253:-900.000000 +-58.037782:5.145253:-900.000000 PORT Label:"Reset Tool" FIN_BOX @@ -153,7 +153,7 @@ BOX creaVtk:MeshManager_tool:Box45 ISEXEC:FALSE -88.859950:-132.940417:-900.000000 -10.440000:-135.440417:-900.000000 +-66.359950:-135.440417:-900.000000 PORT Tool:"30" FIN_BOX @@ -161,13 +161,13 @@ BOX std:MagicBox:Box46 ISEXEC:FALSE -139.784698:124.004612:-900.000000 -8.680000:121.504612:-900.000000 +-118.184698:121.504612:-900.000000 FIN_BOX BOX std:MultipleInputs:Box51 ISEXEC:FALSE -92.949669:-148.627142:-900.000000 -21.000000:-151.127142:-900.000000 +-70.979669:-151.127142:-900.000000 FIN_BOX BOX std:MagicBox:Box63 @@ -179,31 +179,31 @@ BOX std:MagicBox:Box64 ISEXEC:FALSE -243.113826:124.330340:-900.000000 -8.680000:121.830340:-900.000000 +-221.513826:121.830340:-900.000000 FIN_BOX BOX std:MagicBox:Box65 ISEXEC:FALSE -220.296210:124.504415:-900.000000 -8.680000:122.004415:-900.000000 +-198.696210:122.004415:-900.000000 FIN_BOX BOX std:MagicBox:Box69 ISEXEC:FALSE -197.793508:124.678490:-900.000000 -8.680000:122.178490:-900.000000 +-176.193508:122.178490:-900.000000 FIN_BOX BOX std:MagicBox:Box71 ISEXEC:FALSE -273.359367:124.504415:-900.000000 -8.680000:122.004415:-900.000000 +-251.759367:122.004415:-900.000000 FIN_BOX BOX creaMaracasVisu:MeshContours_Widget:Box72 ISEXEC:FALSE -109.985892:-79.925596:-900.000000 -13.960000:-82.425596:-900.000000 +-87.190892:-82.425596:-900.000000 PORT colorMesh:"0 1 1" FIN_BOX @@ -211,7 +211,7 @@ BOX wx:LayoutLine:Box81 ISEXEC:FALSE -186.050677:-117.835921:-900.000000 -33.320000:-120.335921:-900.000000 +-152.730677:-120.335921:-900.000000 PORT WinTitle:"Step 1. Surface" FIN_BOX @@ -225,7 +225,7 @@ BOX wx:OutputText:Box84 ISEXEC:FALSE -90.166444:-34.853291:-900.000000 -19.240000:-37.353291:-900.000000 +-68.496444:-37.353291:-900.000000 FIN_BOX BOX creaVtk:MeshManager:Box92 @@ -236,8 +236,8 @@ FIN_BOX BOX creaVtk:MeshManager_tool:Box93 ISEXEC:FALSE --256.027180:-70.934538:-900.000000 --233.527180:-73.434538:-900.000000 +-256.725914:-77.013526:-900.000000 +-234.225914:-79.513526:-900.000000 PORT Tool:"35" FIN_BOX @@ -245,7 +245,7 @@ BOX creaMaracasVisu:wxVtkBaseView_Info:Box96 ISEXEC:FALSE -6.504018:23.833007:-900.000000 -18.480000:21.333007:-900.000000 +20.775982:21.333007:-900.000000 FIN_BOX BOX creaVtk:PolyDataToImageData:Box97 @@ -295,7 +295,7 @@ BOX creaVtk:MeshManager_tool:Box47 ISEXEC:FALSE -60.096172:-132.552191:-900.000000 -10.440000:-135.052191:-900.000000 +-37.596172:-135.052191:-900.000000 PORT Tool:"35" FIN_BOX @@ -303,11 +303,17 @@ BOX creaVtk:MeshManager_tool:Box48 ISEXEC:FALSE -31.571613:-131.892967:-900.000000 -10.440000:-134.392967:-900.000000 +-9.071613:-134.392967:-900.000000 PORT Tool:"35" FIN_BOX -CONNECTIONS:53 +BOX +creaVtk:PolyDataNormals:Box39 +ISEXEC:FALSE +-249.664060:-67.916509:-900.000000 +-227.369060:-70.416509:-900.000000 +FIN_BOX +CONNECTIONS:54 CONNECTION Box08:Widget:widget:widget NumberOfControlPoints:0 @@ -441,9 +447,6 @@ CONNECTION Box100:Out:Box41:In NumberOfControlPoints:0 CONNECTION -Box41:Out:Box93:Mesh -NumberOfControlPoints:0 -CONNECTION Box92:MeshManagerModel:Box47:MeshManagerModel NumberOfControlPoints:0 CONNECTION @@ -467,4 +470,10 @@ NumberOfControlPoints:0 CONNECTION Box37:boxchange:Box11:BoxExecute NumberOfControlPoints:0 +CONNECTION +Box41:Out:Box39:In +NumberOfControlPoints:0 +CONNECTION +Box39:Out:Box93:Mesh +NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbs index 6c49452..297299f 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyByImage.bbs @@ -110,6 +110,8 @@ new creaVtk:MeshManager_tool Box47 new creaVtk:MeshManager_tool Box48 set Box48.Tool "35" +new creaVtk:PolyDataNormals Box39 + connect Box66.Out Box11.Renderer connect Box35.Out Box68.In @@ -145,7 +147,6 @@ connect Box99.Out Box100.In connect Box100.BoxChange Box93.BoxExecute connect Box40.Widget Box81.Widget2 connect Box100.Out Box41.In -connect Box41.Out Box93.Mesh connect Box92.MeshManagerModel Box47.MeshManagerModel connect Box43.BoxChange Box48.BoxExecute connect Box92.MeshManagerModel Box48.MeshManagerModel @@ -154,6 +155,8 @@ connect Box92.MeshBase Box45.Mesh connect Box47.BoxChange Box51.In5 connect Box80.BoxChange Box100.BoxExecute connect Box37.boxchange Box11.BoxExecute +connect Box41.Out Box39.In +connect Box39.Out Box93.Mesh # Complex input ports input mesh Box67.In " " diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg index 2f5fecf..d1da017 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg @@ -10,11 +10,15 @@ AUTHOR:info-dev@creatis.insa-lyon.fr COMPLEXBOX:TRUE COMPLEXBOXNAME:Mesh_tool_ApplyDeformation PACKAGENAME:creaMaracasVisu -COMPLEXOUTPUTS:1 +COMPLEXOUTPUTS:2 COMPLEX_PORT widget -190.515959:-183.832070:-900.000000 FIN_COMPLEX_PORT +COMPLEX_PORT +ExportIsActive_concatstring_tool +-495.718682:-76.702206:-900.000000 +FIN_COMPLEX_PORT COMPLEXINPUTS:9 COMPLEX_PORT boxChange @@ -34,7 +38,7 @@ image FIN_COMPLEX_PORT COMPLEX_PORT wxvtkbaseview2 --231.668448:132.854505:-900.000000 +-239.082553:133.513537:-900.000000 FIN_COMPLEX_PORT COMPLEX_PORT wxvtkbaseview3 @@ -52,7 +56,7 @@ COMPLEX_PORT meshmanagermodel -131.800179:136.578564:-900.000000 FIN_COMPLEX_PORT -BOXES:50 +BOXES:76 BOX wx:LayoutLine:Box08 ISEXEC:FALSE @@ -80,8 +84,8 @@ FIN_BOX BOX wx:CommandButton:Box80 ISEXEC:FALSE --107.742295:24.772151:-900.000000 --85.467295:22.272151:-900.000000 +-106.415574:-14.764137:-900.000000 +-84.140574:-17.264137:-900.000000 PORT Label:"Run" FIN_BOX @@ -106,8 +110,8 @@ FIN_BOX BOX creaMaracasVisu:PolyDataToActor_Widget:Box37 ISEXEC:FALSE --73.296848:-81.710893:-900.000000 --50.276848:-84.210893:-900.000000 +-201.313723:-44.146096:-900.000000 +-178.293723:-46.646096:-900.000000 PORT color:"0 1 1" FIN_BOX @@ -120,8 +124,8 @@ FIN_BOX BOX wx:CommandButton:Box42 ISEXEC:FALSE --91.903796:13.441695:-900.000000 --69.628796:10.941695:-900.000000 +-85.800879:-23.706495:-900.000000 +-63.525879:-26.206495:-900.000000 PORT Label:"Apply (Magenta->To Red)" FIN_BOX @@ -136,8 +140,8 @@ FIN_BOX BOX wx:LayoutLine:Box44 ISEXEC:FALSE --122.128535:-44.031647:-900.000000 --88.808535:-46.531647:-900.000000 +-119.475093:-36.602009:-900.000000 +-86.155093:-39.102009:-900.000000 PORT Orientation:"V" PORT @@ -166,8 +170,8 @@ FIN_BOX BOX std:MagicBox:Box63 ISEXEC:FALSE -11.031862:123.390537:-900.000000 -32.631862:120.890537:-900.000000 +-23.567293:123.061021:-900.000000 +-1.967293:120.561021:-900.000000 FIN_BOX BOX std:MagicBox:Box64 @@ -196,8 +200,8 @@ FIN_BOX BOX creaMaracasVisu:MeshContours_Widget:Box72 ISEXEC:FALSE --109.786535:-80.922381:-900.000000 --86.991535:-83.422381:-900.000000 +-116.492181:-83.459652:-900.000000 +-93.697181:-85.959652:-900.000000 PORT colorMesh:"0 1 1" FIN_BOX @@ -216,16 +220,10 @@ ISEXEC:FALSE -90.244121:-54.898946:-900.000000 FIN_BOX BOX -wx:OutputText:Box84 -ISEXEC:FALSE --90.166444:-34.853291:-900.000000 --68.496444:-37.353291:-900.000000 -FIN_BOX -BOX creaMaracasVisu:wxVtkBaseView_Info:Box96 ISEXEC:FALSE --283.344596:66.779389:-900.000000 --260.729596:64.279389:-900.000000 +-287.507139:74.319532:-900.000000 +-260.227139:71.819532:-900.000000 FIN_BOX BOX creaVtk:MeshManager_tool:Box48 @@ -246,8 +244,8 @@ FIN_BOX BOX wx:Slider:Box49 ISEXEC:FALSE --352.383503:38.044822:-900.000000 --322.583503:35.544822:-900.000000 +-422.817623:3.779003:-900.000000 +-393.017623:1.279003:-900.000000 PORT In:"40" PORT @@ -264,28 +262,24 @@ FIN_BOX BOX wx:CheckBox:Box50 ISEXEC:FALSE --412.119236:43.623139:-900.000000 --390.489236:41.123139:-900.000000 +-406.669986:180.478025:-900.000000 +-385.039986:177.978025:-900.000000 +PORT +Title:"Active" FIN_BOX BOX wx:LayoutLine:Box52 ISEXEC:FALSE --352.234286:18.772505:-900.000000 --318.914286:16.272505:-900.000000 +-465.947270:-6.599954:-900.000000 +-432.627270:-9.099954:-900.000000 PORT Orientation:"V" FIN_BOX BOX -creaMaracasVisu:SetPositionPointPicker:Box55 -ISEXEC:FALSE --311.449728:25.451447:-900.000000 --288.719728:22.951447:-900.000000 -FIN_BOX -BOX creaVtk:PlaneWidget:Box58 ISEXEC:FALSE --287.189943:-20.987786:-900.000000 --265.344943:-23.487786:-900.000000 +-260.210750:-38.996691:-900.000000 +-238.365750:-41.496691:-900.000000 PORT ReactiveType:"1" PORT @@ -296,8 +290,8 @@ FIN_BOX BOX std:MultipleInputs:Box59 ISEXEC:FALSE --340.840337:-1.508223:-900.000000 --318.870337:-4.008223:-900.000000 +-310.679685:15.680840:-900.000000 +-288.709685:13.180840:-900.000000 FIN_BOX BOX wx:CommandButton:Box53 @@ -310,8 +304,8 @@ FIN_BOX BOX wx:CommandButton:Box54 ISEXEC:FALSE --357.413878:62.971953:-900.000000 --335.138878:60.471953:-900.000000 +-357.232644:65.146757:-900.000000 +-334.957644:62.646757:-900.000000 PORT Label:"+" FIN_BOX @@ -326,8 +320,8 @@ FIN_BOX BOX creaVtk:PlaneWidget_Base:Box57 ISEXEC:FALSE --364.671866:-55.197401:-900.000000 --342.261866:-57.697401:-900.000000 +-364.490632:-56.647270:-900.000000 +-342.080632:-59.147270:-900.000000 PORT Param:"-1" PORT @@ -336,8 +330,8 @@ FIN_BOX BOX creaVtk:PlaneWidget_Base:Box60 ISEXEC:FALSE --335.761293:-55.647118:-900.000000 --313.351293:-58.147118:-900.000000 +-335.352802:-56.464099:-900.000000 +-312.942802:-58.964099:-900.000000 PORT Param:"1" PORT @@ -346,84 +340,304 @@ FIN_BOX BOX std:MultipleInputs:Box61 ISEXEC:FALSE --392.309372:-30.968750:-900.000000 --370.339372:-33.468750:-900.000000 +-391.584437:-40.211667:-900.000000 +-369.614437:-42.711667:-900.000000 FIN_BOX BOX creaVtk:MeshManager:Box62 ISEXEC:FALSE --92.612946:83.856386:-900.000000 --70.582946:81.356386:-900.000000 +-118.710595:82.225283:-900.000000 +-96.680595:79.725283:-900.000000 FIN_BOX BOX std:MultipleInputs:Box73 ISEXEC:FALSE --373.112551:-77.770897:-900.000000 --351.142551:-80.270897:-900.000000 +-354.803800:-75.117455:-900.000000 +-332.833800:-77.617455:-900.000000 FIN_BOX BOX creaVtk:PointPickerNearest:Box75 ISEXEC:FALSE --245.458654:35.953945:-900.000000 --223.008654:33.453945:-900.000000 +-238.037741:46.670015:-900.000000 +-215.587741:44.170015:-900.000000 PORT Active:"true" FIN_BOX BOX creaMaracasVisu:wxVtkBaseView_Info:Box76 ISEXEC:FALSE --257.781888:76.567173:-900.000000 --235.166888:74.067173:-900.000000 +-254.280207:102.066880:-900.000000 +-227.000207:99.566880:-900.000000 PORT InteractionType:"6" FIN_BOX BOX std:MathOperationVector:Box78 ISEXEC:FALSE --249.502786:64.582125:-900.000000 --224.982786:62.082125:-900.000000 +-231.716424:54.012158:-900.000000 +-207.196424:51.512158:-900.000000 PORT Type:"2" FIN_BOX BOX vtk:ImageVtkProperties:Box83 ISEXEC:FALSE --239.617313:71.771560:-900.000000 --217.082313:69.271560:-900.000000 +-219.373063:72.307772:-900.000000 +-196.838063:69.807772:-900.000000 FIN_BOX BOX std:SharedMemory:Box85 ISEXEC:FALSE --267.176814:10.062244:-900.000000 --244.416814:7.562244:-900.000000 +-313.742294:42.129574:-900.000000 +-290.982294:39.629574:-900.000000 FIN_BOX BOX std:SharedMemory:Box86 ISEXEC:FALSE --238.648164:9.921269:-900.000000 --215.888164:7.421269:-900.000000 +-304.400175:37.381370:-900.000000 +-281.640175:34.881370:-900.000000 FIN_BOX BOX std:SharedMemory:Box87 ISEXEC:FALSE --209.220835:10.379413:-900.000000 --186.460835:7.879413:-900.000000 +-296.647358:30.371625:-900.000000 +-273.887358:27.871625:-900.000000 FIN_BOX BOX std:MathOperationVector:Box88 ISEXEC:FALSE --277.168407:-46.081613:-900.000000 --252.648407:-48.581613:-900.000000 +-247.017714:-58.438454:-900.000000 +-222.497714:-60.938454:-900.000000 PORT Type:"3" FIN_BOX BOX creaMaracasVisu:SetPosition:Box89 ISEXEC:FALSE --278.565230:-57.200311:-900.000000 --256.905230:-59.700311:-900.000000 +-280.871840:-68.898121:-900.000000 +-259.211840:-71.398121:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_info_tool:Box90 +ISEXEC:FALSE +-253.040214:81.680557:-900.000000 +-229.960214:79.180557:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_info_tool:Box91 +ISEXEC:FALSE +-295.971226:67.391116:-900.000000 +-272.891226:64.891116:-900.000000 +PORT +Type:"0" +FIN_BOX +BOX +creaVtk:PointPicker:Box92 +ISEXEC:FALSE +-291.530772:54.654433:-900.000000 +-269.835772:52.154433:-900.000000 +PORT +TypeEvent:"2" +FIN_BOX +BOX +std:ConcatStrings_tool:Box94 +ISEXEC:FALSE +-211.636401:-8.094416:-900.000000 +-189.196401:-10.594416:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings:Box95 +ISEXEC:FALSE +-206.264131:3.945366:-900.000000 +-183.504131:1.445366:-900.000000 +FIN_BOX +BOX +std:ConcatStrings_tool:Box97 +ISEXEC:FALSE +-182.930739:-29.463287:-900.000000 +-160.490739:-31.963287:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings:Box98 +ISEXEC:FALSE +-180.830927:-5.858673:-900.000000 +-158.070927:-8.358673:-900.000000 +FIN_BOX +BOX +std:ConcatStrings_tool:Box99 +ISEXEC:FALSE +-213.431372:-20.340330:-900.000000 +-190.991372:-22.840330:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings_tool:Box100 +ISEXEC:FALSE +-183.825982:-13.921355:-900.000000 +-161.275982:-16.421355:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings_tool:Box101 +ISEXEC:FALSE +-269.803077:16.559989:-900.000000 +-247.253077:14.059989:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings:Box102 +ISEXEC:FALSE +-273.826091:24.923356:-900.000000 +-251.066091:22.423356:-900.000000 +FIN_BOX +BOX +std:ConcatStrings_tool:Box103 +ISEXEC:FALSE +-278.542388:10.986088:-900.000000 +-255.992388:8.486088:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +wx:RadioButton:Box104 +ISEXEC:FALSE +-382.995141:90.878663:-900.000000 +-346.155141:88.378663:-900.000000 +PORT +In0:"Magenta" +PORT +In1:"Colour" +PORT +In2:"B&W" +FIN_BOX +BOX +std:StringSelect:Box105 +ISEXEC:FALSE +-380.523773:80.828432:-900.000000 +-356.003773:78.328432:-900.000000 +PORT +In0:"false" +PORT +In1:"true" +PORT +In2:"true" +FIN_BOX +BOX +vtk:SurfaceTexture:Box106 +ISEXEC:FALSE +-504.300941:25.394221:-900.000000 +-482.130941:22.894221:-900.000000 +FIN_BOX +BOX +std:Add:Box107 +ISEXEC:FALSE +-501.841704:48.802838:-900.000000 +-480.696704:46.302838:-900.000000 +PORT +In2:"-1" FIN_BOX -CONNECTIONS:95 +BOX +wx:LayoutLine:Box108 +ISEXEC:FALSE +-448.292552:16.040337:-900.000000 +-414.972552:13.540337:-900.000000 +PORT +Orientation:"H" +FIN_BOX +BOX +std:MultipleInputs:Box109 +ISEXEC:FALSE +-499.559459:68.108130:-900.000000 +-477.479459:65.608130:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_Info:Box110 +ISEXEC:FALSE +-503.984856:55.718337:-900.000000 +-476.704856:53.218337:-900.000000 +FIN_BOX +BOX +std:GetVectorDoubleElement:Box111 +ISEXEC:FALSE +-472.591566:42.496696:-900.000000 +-449.356566:39.996696:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +std:GetVectorDoubleElement:Box112 +ISEXEC:FALSE +-498.823250:42.130977:-900.000000 +-475.588250:39.630977:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_Info:Box113 +ISEXEC:FALSE +-320.718977:101.018811:-900.000000 +-293.438977:98.518811:-900.000000 +PORT +InteractionType:"8" +FIN_BOX +BOX +creaMaracasVisu:wxVtkBaseView_info_tool:Box114 +ISEXEC:FALSE +-323.206961:81.948245:-900.000000 +-300.016961:79.448245:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:MathOperationVector:Box115 +ISEXEC:FALSE +-310.696546:59.792865:-900.000000 +-286.176546:57.292865:-900.000000 +PORT +Type:"2" +FIN_BOX +BOX +std:ConcatStrings_tool:Box116 +ISEXEC:FALSE +-202.680134:-3.848758:-900.000000 +-180.130134:-6.348758:-900.000000 +PORT +Type:"1" +FIN_BOX +BOX +std:ConcatStrings:Box117 +ISEXEC:FALSE +-479.325602:127.929555:-900.000000 +-456.565602:125.429555:-900.000000 +PORT +In1:"true" +FIN_BOX +BOX +std:Mul:Box118 +ISEXEC:FALSE +-474.686679:98.376440:-900.000000 +-453.601679:95.876440:-900.000000 +FIN_BOX +BOX +std:ReplaceCleanString:Box119 +ISEXEC:FALSE +-469.644099:116.669178:-900.000000 +-446.979099:114.169178:-900.000000 +PORT +Replace:"1" +PORT +Search:"true" +FIN_BOX +CONNECTIONS:146 CONNECTION Box08:Widget:widget:widget NumberOfControlPoints:0 @@ -494,9 +708,6 @@ CONNECTION Box82:Widget:Box79:Widget2 NumberOfControlPoints:0 CONNECTION -Box84:Widget:Box44:Widget9 -NumberOfControlPoints:0 -CONNECTION Box81:Widget:Box08:Widget2 NumberOfControlPoints:0 CONNECTION @@ -506,9 +717,6 @@ CONNECTION Box43:Widget:Box44:Widget7 NumberOfControlPoints:0 CONNECTION -Box71:Out:Box96:wxVtkBaseView -NumberOfControlPoints:0 -CONNECTION Box96:vtkRenderer:Box66:In NumberOfControlPoints:0 CONNECTION @@ -524,24 +732,12 @@ CONNECTION Box49:Out:Box39:S NumberOfControlPoints:0 CONNECTION -Box50:Widget:Box52:Widget2 -NumberOfControlPoints:0 -CONNECTION Box49:Widget:Box52:Widget4 NumberOfControlPoints:0 CONNECTION Box52:Widget:Box44:Widget3 NumberOfControlPoints:0 CONNECTION -Box35:Out:Box55:image -NumberOfControlPoints:0 -CONNECTION -Box96:vtkRenderer:Box55:render -NumberOfControlPoints:0 -CONNECTION -Box71:Out:Box55:wxvtkbaseview -NumberOfControlPoints:0 -CONNECTION Box50:Out:Box58:Active NumberOfControlPoints:0 CONNECTION @@ -590,9 +786,6 @@ CONNECTION Box61:BoxChange:Box39:BoxExecute NumberOfControlPoints:0 CONNECTION -Box50:Out:Box39:Active -NumberOfControlPoints:0 -CONNECTION Box67:Out:Box62:Mesh NumberOfControlPoints:0 CONNECTION @@ -635,78 +828,252 @@ CONNECTION Box62:MeshTemp:Box75:Mesh NumberOfControlPoints:0 CONNECTION -Box64:Out:Box76:wxVtkBaseView +Box76:Point:Box78:In0 NumberOfControlPoints:0 CONNECTION -Box65:Out:Box76:wxVtkBaseView2 +Box35:Out:Box83:In NumberOfControlPoints:0 CONNECTION -Box69:Out:Box76:wxVtkBaseView3 +Box83:Spacing:Box78:In1 NumberOfControlPoints:0 CONNECTION -Box76:Point:Box78:In0 +Box78:Out:Box75:Point NumberOfControlPoints:0 CONNECTION -Box35:Out:Box83:In +Box58:Center:Box88:In0 NumberOfControlPoints:0 CONNECTION -Box83:Spacing:Box78:In1 +Box83:Spacing:Box88:In1 NumberOfControlPoints:0 CONNECTION -Box78:Out:Box75:Point +Box88:Out:Box89:Point NumberOfControlPoints:0 CONNECTION -Box55:PositionWorld:Box85:In +Box58:BoxChange:Box89:BoxExecute NumberOfControlPoints:0 CONNECTION -Box85:Out:Box58:Origin +Box76:InteractorwxVtkBaseView_model:Box90:InteractorwxVtkBaseView_model NumberOfControlPoints:0 CONNECTION -Box75:Normal:Box86:In1 +Box76:InteractorwxVtkBaseView_model2:Box90:InteractorwxVtkBaseView_model2 NumberOfControlPoints:0 CONNECTION -Box55:normal:Box86:In +Box64:Out:Box90:wxVtkBaseView NumberOfControlPoints:0 CONNECTION -Box86:Out:Box58:NormalIn +Box65:Out:Box90:wxVtkBaseView2 NumberOfControlPoints:0 CONNECTION -Box55:boxchange:Box59:In4 +Box69:Out:Box90:wxVtkBaseView3 NumberOfControlPoints:0 CONNECTION -Box78:BoxChange:Box59:In6 +Box76:InteractorwxVtkBaseView_model3:Box90:InteractorwxVtkBaseView_model3 NumberOfControlPoints:0 CONNECTION -Box76:BoxChange:Box78:BoxExecute +Box96:Box_wxVtkBaseView_Info:Box91:Box_wxVtkBaseView_Info NumberOfControlPoints:0 CONNECTION -Box75:PointOut:Box85:In1 +Box71:Out:Box91:wxVtkBaseView NumberOfControlPoints:0 CONNECTION -Box55:pointid:Box87:In +Box50:BoxChange:Box91:BoxExecute NumberOfControlPoints:0 CONNECTION -Box75:PointId:Box87:In1 +Box50:BoxChange:Box90:BoxExecute NumberOfControlPoints:0 CONNECTION -Box87:Out:Box39:EdgeId +Box75:PointId:Box87:In NumberOfControlPoints:0 CONNECTION -Box58:Center:Box88:In0 +Box75:Normal:Box86:In NumberOfControlPoints:0 CONNECTION -Box83:Spacing:Box88:In1 +Box75:PointOut:Box85:In NumberOfControlPoints:0 CONNECTION -Box88:Out:Box89:Point +Box96:wxVtkBaseView:Box89:wxVtkBaseView NumberOfControlPoints:0 CONNECTION -Box71:Out:Box89:wxVtkBaseView +Box50:Out:Box89:Active NumberOfControlPoints:0 CONNECTION -Box58:BoxChange:Box89:BoxExecute +Box96:vtkRenderer:Box92:Renderer +NumberOfControlPoints:0 +CONNECTION +Box92:Point:Box85:In1 +NumberOfControlPoints:0 +CONNECTION +Box92:PointId:Box87:In1 +NumberOfControlPoints:0 +CONNECTION +Box92:Normal:Box86:In1 +NumberOfControlPoints:0 +CONNECTION +Box75:PointOut:Box94:In1 +NumberOfControlPoints:0 +CONNECTION +Box95:Box_ConcatStrings:Box94:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box95:Out:Box58:Origin +NumberOfControlPoints:0 +CONNECTION +Box98:Box_ConcatStrings:Box97:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box92:Normal:Box97:In1 +NumberOfControlPoints:0 +CONNECTION +Box95:Box_ConcatStrings:Box99:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box92:Point:Box99:In1 +NumberOfControlPoints:0 +CONNECTION +Box98:Box_ConcatStrings:Box100:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box75:Normal:Box100:In1 +NumberOfControlPoints:0 +CONNECTION +Box102:Box_ConcatStrings:Box101:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box102:Box_ConcatStrings:Box103:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box102:Out:Box39:EdgeId +NumberOfControlPoints:0 +CONNECTION +Box75:PointId:Box101:In1 +NumberOfControlPoints:0 +CONNECTION +Box92:PointId:Box103:In1 +NumberOfControlPoints:0 +CONNECTION +Box98:Out:Box58:NormalIn +NumberOfControlPoints:0 +CONNECTION +Box76:BoxChange:Box101:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box92:BoxChange:Box103:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box103:BoxChange:Box99:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box99:BoxChange:Box97:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box101:BoxChange:Box94:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box94:BoxChange:Box100:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box104:Out:Box105:In +NumberOfControlPoints:0 +CONNECTION +Box105:Out:Box37:scalarvisibility +NumberOfControlPoints:0 +CONNECTION +Box104:Out:Box107:In1 +NumberOfControlPoints:0 +CONNECTION +Box107:Out:Box106:ColorType +NumberOfControlPoints:0 +CONNECTION +Box62:MeshTemp:Box106:Mesh +NumberOfControlPoints:0 +CONNECTION +Box50:Widget:Box108:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box104:Widget:Box108:Widget4 +NumberOfControlPoints:0 +CONNECTION +Box108:Widget:Box52:Widget2 +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box106:Image +NumberOfControlPoints:0 +CONNECTION +Box104:BoxChange:Box109:In1 +NumberOfControlPoints:0 +CONNECTION +Box110:BoxChange:Box106:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box109:BoxChange:Box110:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box71:Out:Box110:wxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box110:WindowColorLevel:Box111:In +NumberOfControlPoints:0 +CONNECTION +Box110:WindowColorLevel:Box112:In +NumberOfControlPoints:0 +CONNECTION +Box112:Out:Box106:ColorLevel +NumberOfControlPoints:0 +CONNECTION +Box111:Out:Box106:ColorWindow +NumberOfControlPoints:0 +CONNECTION +Box63:BoxChange:Box109:In2 +NumberOfControlPoints:0 +CONNECTION +Box113:InteractorwxVtkBaseView_model:Box114:InteractorwxVtkBaseView_model +NumberOfControlPoints:0 +CONNECTION +Box113:InteractorwxVtkBaseView_model2:Box114:InteractorwxVtkBaseView_model2 +NumberOfControlPoints:0 +CONNECTION +Box113:InteractorwxVtkBaseView_model3:Box114:InteractorwxVtkBaseView_model3 +NumberOfControlPoints:0 +CONNECTION +Box83:Spacing:Box115:In1 +NumberOfControlPoints:0 +CONNECTION +Box113:Point:Box115:In0 +NumberOfControlPoints:0 +CONNECTION +Box95:Box_ConcatStrings:Box116:Box_ConcatString +NumberOfControlPoints:0 +CONNECTION +Box115:Out:Box116:In1 +NumberOfControlPoints:0 +CONNECTION +Box113:BoxChange:Box116:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box50:BoxChange:Box114:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box64:Out:Box114:wxVtkBaseView +NumberOfControlPoints:0 +CONNECTION +Box65:Out:Box114:wxVtkBaseView2 +NumberOfControlPoints:0 +CONNECTION +Box69:Out:Box114:wxVtkBaseView3 +NumberOfControlPoints:0 +CONNECTION +Box117:Out:Box119:In +NumberOfControlPoints:0 +CONNECTION +Box119:Out:Box118:In1 +NumberOfControlPoints:0 +CONNECTION +Box50:Out:Box118:In2 +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box39:Active NumberOfControlPoints:0 CONNECTION -Box50:BoxChange:Box89:Active +Box117:Box_ConcatStrings:ExportIsActive_concatstring_tool:ExportIsActive_concatstring_tool NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs index 2f417db..55f6a0e 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs @@ -76,8 +76,6 @@ new wx:LayoutLine Box81 new wx:LayoutTab Box82 -new wx:OutputText Box84 - new creaMaracasVisu:wxVtkBaseView_Info Box96 new creaVtk:MeshManager_tool Box48 @@ -95,12 +93,11 @@ new wx:Slider Box49 set Box49.Title "Size Deformation" new wx:CheckBox Box50 + set Box50.Title "Active" new wx:LayoutLine Box52 set Box52.Orientation "V" -new creaMaracasVisu:SetPositionPointPicker Box55 - new creaVtk:PlaneWidget Box58 set Box58.ReactiveType "1" set Box58.Representation "1" @@ -153,6 +150,88 @@ new std:MathOperationVector Box88 new creaMaracasVisu:SetPosition Box89 +new creaMaracasVisu:wxVtkBaseView_info_tool Box90 + set Box90.Type "1" + +new creaMaracasVisu:wxVtkBaseView_info_tool Box91 + set Box91.Type "0" + +new creaVtk:PointPicker Box92 + set Box92.TypeEvent "2" + +new std:ConcatStrings_tool Box94 + set Box94.Type "1" + +new std:ConcatStrings Box95 + +new std:ConcatStrings_tool Box97 + set Box97.Type "1" + +new std:ConcatStrings Box98 + +new std:ConcatStrings_tool Box99 + set Box99.Type "1" + +new std:ConcatStrings_tool Box100 + set Box100.Type "1" + +new std:ConcatStrings_tool Box101 + set Box101.Type "1" + +new std:ConcatStrings Box102 + +new std:ConcatStrings_tool Box103 + set Box103.Type "1" + +new wx:RadioButton Box104 + set Box104.In0 "Magenta" + set Box104.In1 "Colour" + set Box104.In2 "B&W" + +new std:StringSelect Box105 + set Box105.In0 "false" + set Box105.In1 "true" + set Box105.In2 "true" + +new vtk:SurfaceTexture Box106 + +new std:Add Box107 + set Box107.In2 "-1" + +new wx:LayoutLine Box108 + set Box108.Orientation "H" + +new std:MultipleInputs Box109 + +new creaMaracasVisu:wxVtkBaseView_Info Box110 + +new std:GetVectorDoubleElement Box111 + set Box111.I "0" + +new std:GetVectorDoubleElement Box112 + set Box112.I "1" + +new creaMaracasVisu:wxVtkBaseView_Info Box113 + set Box113.InteractionType "8" + +new creaMaracasVisu:wxVtkBaseView_info_tool Box114 + set Box114.Type "1" + +new std:MathOperationVector Box115 + set Box115.Type "2" + +new std:ConcatStrings_tool Box116 + set Box116.Type "1" + +new std:ConcatStrings Box117 + set Box117.In1 "true" + +new std:Mul Box118 + +new std:ReplaceCleanString Box119 + set Box119.Replace "1" + set Box119.Search "true" + connect Box66.Out Box11.Renderer connect Box66.Out Box37.render @@ -167,22 +246,16 @@ connect Box69.Out Box72._wxvtkbaseview2D3 connect Box72._widget Box79.Widget6 connect Box44.Widget Box82.Widget2 connect Box82.Widget Box79.Widget2 -connect Box84.Widget Box44.Widget9 connect Box81.Widget Box08.Widget2 connect Box42.Widget Box44.Widget6 connect Box43.Widget Box44.Widget7 -connect Box71.Out Box96.wxVtkBaseView connect Box96.vtkRenderer Box66.In connect Box37.widget Box79.Widget7 connect Box40.Widget Box81.Widget2 connect Box37.boxchange Box11.BoxExecute connect Box49.Out Box39.S -connect Box50.Widget Box52.Widget2 connect Box49.Widget Box52.Widget4 connect Box52.Widget Box44.Widget3 -connect Box35.Out Box55.image -connect Box96.vtkRenderer Box55.render -connect Box71.Out Box55.wxvtkbaseview connect Box50.Out Box58.Active connect Box50.BoxChange Box59.In2 connect Box59.BoxChange Box58.BoxExecute @@ -199,7 +272,6 @@ connect Box58.Center Box39.Center connect Box49.BoxChange Box61.In1 connect Box58.BoxChange Box61.In2 connect Box61.BoxChange Box39.BoxExecute -connect Box50.Out Box39.Active connect Box67.Out Box62.Mesh connect Box62.MeshTemp Box39.In connect Box62.MeshManagerModel Box48.MeshManagerModel @@ -214,31 +286,88 @@ connect Box39.BoxChange Box73.In2 connect Box63.BoxChange Box73.In3 connect Box73.BoxChange Box72._execute connect Box62.MeshTemp Box75.Mesh -connect Box64.Out Box76.wxVtkBaseView -connect Box65.Out Box76.wxVtkBaseView2 -connect Box69.Out Box76.wxVtkBaseView3 connect Box76.Point Box78.In0 connect Box35.Out Box83.In connect Box83.Spacing Box78.In1 connect Box78.Out Box75.Point -connect Box55.PositionWorld Box85.In -connect Box85.Out Box58.Origin -connect Box75.Normal Box86.In1 -connect Box55.normal Box86.In -connect Box86.Out Box58.NormalIn -connect Box55.boxchange Box59.In4 -connect Box78.BoxChange Box59.In6 -connect Box76.BoxChange Box78.BoxExecute -connect Box75.PointOut Box85.In1 -connect Box55.pointid Box87.In -connect Box75.PointId Box87.In1 -connect Box87.Out Box39.EdgeId connect Box58.Center Box88.In0 connect Box83.Spacing Box88.In1 connect Box88.Out Box89.Point -connect Box71.Out Box89.wxVtkBaseView connect Box58.BoxChange Box89.BoxExecute -connect Box50.BoxChange Box89.Active +connect Box76.InteractorwxVtkBaseView_model Box90.InteractorwxVtkBaseView_model +connect Box76.InteractorwxVtkBaseView_model2 Box90.InteractorwxVtkBaseView_model2 +connect Box64.Out Box90.wxVtkBaseView +connect Box65.Out Box90.wxVtkBaseView2 +connect Box69.Out Box90.wxVtkBaseView3 +connect Box76.InteractorwxVtkBaseView_model3 Box90.InteractorwxVtkBaseView_model3 +connect Box96.Box_wxVtkBaseView_Info Box91.Box_wxVtkBaseView_Info +connect Box71.Out Box91.wxVtkBaseView +connect Box50.BoxChange Box91.BoxExecute +connect Box50.BoxChange Box90.BoxExecute +connect Box75.PointId Box87.In +connect Box75.Normal Box86.In +connect Box75.PointOut Box85.In +connect Box96.wxVtkBaseView Box89.wxVtkBaseView +connect Box50.Out Box89.Active +connect Box96.vtkRenderer Box92.Renderer +connect Box92.Point Box85.In1 +connect Box92.PointId Box87.In1 +connect Box92.Normal Box86.In1 +connect Box75.PointOut Box94.In1 +connect Box95.Box_ConcatStrings Box94.Box_ConcatString +connect Box95.Out Box58.Origin +connect Box98.Box_ConcatStrings Box97.Box_ConcatString +connect Box92.Normal Box97.In1 +connect Box95.Box_ConcatStrings Box99.Box_ConcatString +connect Box92.Point Box99.In1 +connect Box98.Box_ConcatStrings Box100.Box_ConcatString +connect Box75.Normal Box100.In1 +connect Box102.Box_ConcatStrings Box101.Box_ConcatString +connect Box102.Box_ConcatStrings Box103.Box_ConcatString +connect Box102.Out Box39.EdgeId +connect Box75.PointId Box101.In1 +connect Box92.PointId Box103.In1 +connect Box98.Out Box58.NormalIn +connect Box76.BoxChange Box101.BoxExecute +connect Box92.BoxChange Box103.BoxExecute +connect Box103.BoxChange Box99.BoxExecute +connect Box99.BoxChange Box97.BoxExecute +connect Box101.BoxChange Box94.BoxExecute +connect Box94.BoxChange Box100.BoxExecute +connect Box104.Out Box105.In +connect Box105.Out Box37.scalarvisibility +connect Box104.Out Box107.In1 +connect Box107.Out Box106.ColorType +connect Box62.MeshTemp Box106.Mesh +connect Box50.Widget Box108.Widget2 +connect Box104.Widget Box108.Widget4 +connect Box108.Widget Box52.Widget2 +connect Box35.Out Box106.Image +connect Box104.BoxChange Box109.In1 +connect Box110.BoxChange Box106.BoxExecute +connect Box109.BoxChange Box110.BoxExecute +connect Box71.Out Box110.wxVtkBaseView +connect Box110.WindowColorLevel Box111.In +connect Box110.WindowColorLevel Box112.In +connect Box112.Out Box106.ColorLevel +connect Box111.Out Box106.ColorWindow +connect Box63.BoxChange Box109.In2 +connect Box113.InteractorwxVtkBaseView_model Box114.InteractorwxVtkBaseView_model +connect Box113.InteractorwxVtkBaseView_model2 Box114.InteractorwxVtkBaseView_model2 +connect Box113.InteractorwxVtkBaseView_model3 Box114.InteractorwxVtkBaseView_model3 +connect Box83.Spacing Box115.In1 +connect Box113.Point Box115.In0 +connect Box95.Box_ConcatStrings Box116.Box_ConcatString +connect Box115.Out Box116.In1 +connect Box113.BoxChange Box116.BoxExecute +connect Box50.BoxChange Box114.BoxExecute +connect Box64.Out Box114.wxVtkBaseView +connect Box65.Out Box114.wxVtkBaseView2 +connect Box69.Out Box114.wxVtkBaseView3 +connect Box117.Out Box119.In +connect Box119.Out Box118.In1 +connect Box50.Out Box118.In2 +connect Box118.Out Box39.Active # Complex input ports input mesh Box67.In " " @@ -253,6 +382,7 @@ input wxvtkbaseview1 Box71.In " " # Complex output ports output widget Box08.Widget " " +output ExportIsActive_concatstring_tool Box117.Box_ConcatStrings " " endefine diff --git a/bbtk/bbs/boxes/SetPositionPointPicker.bbg b/bbtk/bbs/boxes/SetPositionPointPicker.bbg index 585bc08..91ccc4e 100644 --- a/bbtk/bbs/boxes/SetPositionPointPicker.bbg +++ b/bbtk/bbs/boxes/SetPositionPointPicker.bbg @@ -66,8 +66,8 @@ FIN_BOX BOX std:MathOperationVector:Box48 ISEXEC:FALSE -37.283221:70.797255:-900.000000 -61.803221:68.297255:-900.000000 +60.725755:69.336900:-900.000000 +85.245755:66.836900:-900.000000 PORT Type:"3" FIN_BOX @@ -90,8 +90,8 @@ FIN_BOX BOX creaMaracasVisu:SetPosition:Box32 ISEXEC:FALSE -47.466408:38.024007:-900.000000 -69.126408:35.524007:-900.000000 +66.758461:51.705224:-900.000000 +88.418461:49.205224:-900.000000 PORT FixAxis2D:"false" FIN_BOX @@ -101,7 +101,7 @@ ISEXEC:FALSE 48.710471:81.272436:-900.000000 70.420471:78.772436:-900.000000 FIN_BOX -CONNECTIONS:18 +CONNECTIONS:15 CONNECTION Box47:Point:Box48:In0 NumberOfControlPoints:0 @@ -118,12 +118,6 @@ CONNECTION Box47:BoxChange:Box50:BoxExecute NumberOfControlPoints:0 CONNECTION -Box50:BoxChange:Box32:BoxExecute -NumberOfControlPoints:0 -CONNECTION -Box49:Out:Box32:Point -NumberOfControlPoints:0 -CONNECTION render:render:Box47:Renderer NumberOfControlPoints:0 CONNECTION @@ -136,9 +130,6 @@ CONNECTION Box100:Out:Box50:wxVtkBaseView NumberOfControlPoints:0 CONNECTION -Box100:Out:Box32:wxVtkBaseView -NumberOfControlPoints:0 -CONNECTION Box47:BoxChange:boxchange:boxchange NumberOfControlPoints:0 CONNECTION diff --git a/bbtk/bbs/boxes/SetPositionPointPicker.bbs b/bbtk/bbs/boxes/SetPositionPointPicker.bbs index 695c461..5a0a593 100644 --- a/bbtk/bbs/boxes/SetPositionPointPicker.bbs +++ b/bbtk/bbs/boxes/SetPositionPointPicker.bbs @@ -42,10 +42,7 @@ connect Box24.Spacing Box48.In1 connect Box48.Out Box49.In0 connect Box49.Out Box50.Point connect Box47.BoxChange Box50.BoxExecute -connect Box50.BoxChange Box32.BoxExecute -connect Box49.Out Box32.Point connect Box100.Out Box50.wxVtkBaseView -connect Box100.Out Box32.wxVtkBaseView # Complex input ports input render Box47.Renderer " " diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 64c93c6..a0a8365 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -32,7 +32,6 @@ void SetPosition::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <GetVtkBaseData()); if (bbGetInputPoint().size()==3) { + printf("EED SetPosition::Process boxName=%s x,y,z=%d %d %d\n" , bbGetFullName().c_str() , bbGetInputPoint()[0] , bbGetInputPoint()[1] , bbGetInputPoint()[2] ); vtkmprbasedata->SetX( bbGetInputPoint()[0] ); vtkmprbasedata->SetY( bbGetInputPoint()[1] ); vtkmprbasedata->SetZ( bbGetInputPoint()[2] ); @@ -56,44 +56,41 @@ void SetPosition::Process() } // Active } + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void SetPosition::bbUserSetDefaultValues() { - // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 bbSetInputActive(true); bbSetInputwxVtkBaseView( NULL ) ; bbSetInputFixAxis2D( false ) ; } + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void SetPosition::bbUserInitializeProcessing() { - // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers -// if any - - +// if any } + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void SetPosition::bbUserFinalizeProcessing() { - // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any - } -} -// EO namespace bbcreaMaracasVisu + +}// EO namespace bbcreaMaracasVisu diff --git a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx index 6e1f6cd..b70dd45 100644 --- a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx +++ b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.cxx @@ -3,18 +3,39 @@ //===== #include "bbcreaMaracasVisuwxVtkBaseView_Info.h" #include "bbcreaMaracasVisuPackage.h" -#include "InteractorStyleMaracas.h" #include namespace bbcreaMaracasVisu { +InteractorwxVtkBaseView_model::InteractorwxVtkBaseView_model() +{ + _wxvtkbaseview = NULL; +} + +InteractorwxVtkBaseView_model::~InteractorwxVtkBaseView_model() +{ +} + +void InteractorwxVtkBaseView_model::SetwxVtkBaseView( wxVtkBaseView *wxvtkbaseview) +{ + _wxvtkbaseview = wxvtkbaseview; +} -class InteractorwxVtkBaseView : public InteractorStyleMaracas +void InteractorwxVtkBaseView_model::AddThisInteractor() +{ + vtkInteractorStyleBaseView *vtkinteractorstylebaseview = (vtkInteractorStyleBaseView*) (_wxvtkbaseview->GetInteractorStyleBaseView() ); + vtkinteractorstylebaseview->AddInteractorStyleMaracas( this ); +} + + + + + +class InteractorwxVtkBaseView : public InteractorwxVtkBaseView_model { public: - InteractorwxVtkBaseView( ); - InteractorwxVtkBaseView( wxVtkBaseView_Info *box, wxVtkBaseView *wxvtkbaseview ); + InteractorwxVtkBaseView( wxVtkBaseView_Info *box ); ~InteractorwxVtkBaseView(); virtual bool OnLeftButtonDown(); virtual bool OnLeftButtonUp(); @@ -23,25 +44,15 @@ class InteractorwxVtkBaseView : public InteractorStyleMaracas virtual bool OnRightButtonUp(); virtual bool OnLeftDClick(); virtual bool OnRightDClick(); - private: - wxVtkBaseView *_wxvtkbaseview; wxVtkBaseView_Info *_box; bool flagDrag; }; -InteractorwxVtkBaseView::InteractorwxVtkBaseView( ) -{ - _wxvtkbaseview = NULL; - _box = NULL; - flagDrag = false; -} - -InteractorwxVtkBaseView::InteractorwxVtkBaseView( wxVtkBaseView_Info *box , wxVtkBaseView *wxvtkbaseview ) +InteractorwxVtkBaseView::InteractorwxVtkBaseView( wxVtkBaseView_Info *box ) { _box = box; flagDrag = false; - _wxvtkbaseview = wxvtkbaseview; } InteractorwxVtkBaseView::~InteractorwxVtkBaseView() @@ -50,124 +61,145 @@ InteractorwxVtkBaseView::~InteractorwxVtkBaseView() bool InteractorwxVtkBaseView::OnLeftButtonDown() { - if ( _box->bbGetInputInteractionType()==8 ) + if (_box!=NULL) { - flagDrag=true; - } - if ( (_box->bbGetInputInteractionType()==1 ) && (_wxvtkbaseview!=NULL) ) - { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if _vtkbaseview + if ( _box->bbGetInputInteractionType()==8 ) + { + flagDrag=true; + } + if ( (_box->bbGetInputInteractionType()==1 ) && (_wxvtkbaseview!=NULL) ) + { + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if _vtkbaseview + } // if _box return true; } bool InteractorwxVtkBaseView::OnLeftButtonUp() { - if ( _box->bbGetInputInteractionType()==8 ) + if (_box!=NULL) { - flagDrag=false; - } - if ( (_box->bbGetInputInteractionType()==2 ) && (_wxvtkbaseview!=NULL) ) - { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if _vtkbaseview + if ( _box->bbGetInputInteractionType()==8 ) + { + flagDrag=false; + } + if ( (_box->bbGetInputInteractionType()==2 ) && (_wxvtkbaseview!=NULL) ) + { + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if _vtkbaseview + } // if _box return true; } bool InteractorwxVtkBaseView::OnMouseMove() { - int intFlag; - if (flagDrag==true) intFlag=1; else intFlag=0; - bool ok=false; - if ( (_box->bbGetInputInteractionType()==3 ) && (_wxvtkbaseview!=NULL) ) - { - ok=true; - } // if InteractionType 3 - if (( _box->bbGetInputInteractionType()==8 ) && (flagDrag==true) ) - { - ok=true; - } // if InteractionType 8 - if (( _box->bbGetInputInteractionType()==9 ) && (flagDrag==true) ) - { - ok=true; - } // if InteractionType 9 - if (ok==true) + if (_box!=NULL) { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if ok + int intFlag; + if (flagDrag==true) intFlag=1; else intFlag=0; + bool ok=false; + if ( (_box->bbGetInputInteractionType()==3 ) && (_wxvtkbaseview!=NULL) ) + { + ok=true; + } // if InteractionType 3 + if (( _box->bbGetInputInteractionType()==8 ) && (flagDrag==true) ) + { + ok=true; + } // if InteractionType 8 + if (( _box->bbGetInputInteractionType()==9 ) && (flagDrag==true) ) + { + ok=true; + } // if InteractionType 9 + if (ok==true) + { + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if ok + } // if _box return true; } bool InteractorwxVtkBaseView::OnRightButtonDown() { - if ( _box->bbGetInputInteractionType()==9 ) - { - flagDrag=true; - } - if ( (_box->bbGetInputInteractionType()==4 ) && (_wxvtkbaseview!=NULL) ) + if (_box!=NULL) { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if _vtkbaseview + if ( _box->bbGetInputInteractionType()==9 ) + { + flagDrag=true; + } + if ( (_box->bbGetInputInteractionType()==4 ) && (_wxvtkbaseview!=NULL) ) + { + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if _vtkbaseview + } // if _box return true; } bool InteractorwxVtkBaseView::OnRightButtonUp() { - if ( _box->bbGetInputInteractionType()==9 ) - { - flagDrag=false; - } - if ( (_box->bbGetInputInteractionType()==5 ) && (_wxvtkbaseview!=NULL) ) + if (_box!=NULL) { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if _vtkbaseview + if ( _box->bbGetInputInteractionType()==9 ) + { + flagDrag=false; + } + if ( (_box->bbGetInputInteractionType()==5 ) && (_wxvtkbaseview!=NULL) ) + { + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if _vtkbaseview + } // if _box return true; } bool InteractorwxVtkBaseView::OnLeftDClick() { - if ( (_box->bbGetInputInteractionType()==6 ) && (_wxvtkbaseview!=NULL) ) + if (_box!=NULL) { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if _vtkbaseview + if ( (_box->bbGetInputInteractionType()==6 ) && (_wxvtkbaseview!=NULL) ) + { + printf("EED InteractorwxVtkBaseView::OnLeftDClick type=6 \n"); + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if _vtkbaseview + } // if _box return true; } bool InteractorwxVtkBaseView::OnRightDClick() { - if ( (_box->bbGetInputInteractionType()==7 ) && (_wxvtkbaseview!=NULL) ) + if (_box!=NULL) { - _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); - _box->bbSignalOutputModification(); - return false; - } // if _vtkbaseview + if ( (_box->bbGetInputInteractionType()==7 ) && (_wxvtkbaseview!=NULL) ) + { + _box->SetwxVtkBaseViewOutputs( _wxvtkbaseview ); + _box->bbSignalOutputModification(); + return false; + } // if _vtkbaseview + } // if _box return true; } - BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,wxVtkBaseView_Info) BBTK_BLACK_BOX_IMPLEMENTATION(wxVtkBaseView_Info,bbtk::AtomicBlackBox); - void wxVtkBaseView_Info::SetwxVtkBaseViewOutputs(wxVtkBaseView *wxvtkbaseview ) { if (wxvtkbaseview!=NULL) { bbSetOutputvtkRenderer( wxvtkbaseview->GetRenderer() ); bbSetOutputDirection( wxvtkbaseview->GetDirection() ); + bbSetOutputwxVtkBaseView(wxvtkbaseview); vtkBaseData *vtkbasedata = wxvtkbaseview->GetVtkBaseData(); if (vtkbasedata!=NULL) { @@ -228,32 +260,48 @@ void wxVtkBaseView_Info::Process() { SetwxVtkBaseViewOutputs( bbGetInputwxVtkBaseView() ); } + if (firsttime==true) { firsttime=false; if (bbGetInputInteractionType()!=0) { SetwxVtkBaseViewOutputs( bbGetInputwxVtkBaseView() ); + + interactorwxvtkbaseview = new InteractorwxVtkBaseView( this ); if (bbGetInputwxVtkBaseView()!=NULL) { - InteractorwxVtkBaseView *interactorwxvtkbaseview = new InteractorwxVtkBaseView( this, bbGetInputwxVtkBaseView() ); - vtkInteractorStyleBaseView *vtkinteractorstylebaseview = (vtkInteractorStyleBaseView*) (bbGetInputwxVtkBaseView()->GetInteractorStyleBaseView() ); - vtkinteractorstylebaseview->AddInteractorStyleMaracas( interactorwxvtkbaseview ); + interactorwxvtkbaseview->SetwxVtkBaseView( bbGetInputwxVtkBaseView() ); + interactorwxvtkbaseview->AddThisInteractor(); } // if wxVtkBaseView + + interactorwxvtkbaseview2 = new InteractorwxVtkBaseView( this ); if (bbGetInputwxVtkBaseView2()!=NULL) { - InteractorwxVtkBaseView *interactorwxvtkbaseview = new InteractorwxVtkBaseView( this, bbGetInputwxVtkBaseView2() ); - vtkInteractorStyleBaseView *vtkinteractorstylebaseview = (vtkInteractorStyleBaseView*) (bbGetInputwxVtkBaseView2()->GetInteractorStyleBaseView() ); - vtkinteractorstylebaseview->AddInteractorStyleMaracas( interactorwxvtkbaseview ); + interactorwxvtkbaseview2->SetwxVtkBaseView( bbGetInputwxVtkBaseView2() ); + interactorwxvtkbaseview2->AddThisInteractor(); + +// vtkInteractorStyleBaseView *vtkinteractorstylebaseview = (vtkInteractorStyleBaseView*) (bbGetInputwxVtkBaseView2()->GetInteractorStyleBaseView() ); +// vtkinteractorstylebaseview->AddInteractorStyleMaracas( interactorwxvtkbaseview2 ); } // if wxVtkBaseView2 + + interactorwxvtkbaseview3 = new InteractorwxVtkBaseView( this ); if (bbGetInputwxVtkBaseView3()!=NULL) { - InteractorwxVtkBaseView *interactorwxvtkbaseview = new InteractorwxVtkBaseView( this, bbGetInputwxVtkBaseView3() ); - vtkInteractorStyleBaseView *vtkinteractorstylebaseview = (vtkInteractorStyleBaseView*) (bbGetInputwxVtkBaseView3()->GetInteractorStyleBaseView() ); - vtkinteractorstylebaseview->AddInteractorStyleMaracas( interactorwxvtkbaseview ); + interactorwxvtkbaseview3->SetwxVtkBaseView( bbGetInputwxVtkBaseView3() ); + interactorwxvtkbaseview3->AddThisInteractor(); + +// vtkInteractorStyleBaseView *vtkinteractorstylebaseview = (vtkInteractorStyleBaseView*) (bbGetInputwxVtkBaseView3()->GetInteractorStyleBaseView() ); +// vtkinteractorstylebaseview->AddInteractorStyleMaracas( interactorwxvtkbaseview3 ); } // if wxVtkBaseView3 + + bbSetOutputInteractorwxVtkBaseView_model( interactorwxvtkbaseview ); + bbSetOutputInteractorwxVtkBaseView_model2( interactorwxvtkbaseview2 ); + bbSetOutputInteractorwxVtkBaseView_model3( interactorwxvtkbaseview3 ); } // if InteractionType !=0 } // if firsttime + + bbSetOutputBox_wxVtkBaseView_Info( this ); } //===== @@ -275,6 +323,12 @@ void wxVtkBaseView_Info::bbUserSetDefaultValues() bbSetOutputDirection(2); bbSetOutputInterpolation(true); bbSetOutputvtkRenderer(NULL); + interactorwxvtkbaseview=NULL; + interactorwxvtkbaseview2=NULL; + interactorwxvtkbaseview3=NULL; + bbSetOutputInteractorwxVtkBaseView_model( interactorwxvtkbaseview ); + bbSetOutputInteractorwxVtkBaseView_model2( interactorwxvtkbaseview2 ); + bbSetOutputInteractorwxVtkBaseView_model3( interactorwxvtkbaseview3 ); } //===== @@ -286,6 +340,9 @@ void wxVtkBaseView_Info::bbUserInitializeProcessing() // Here does nothing // but this is where you should allocate the internal/output pointers // if any + bbSetOutputInteractorwxVtkBaseView_model(NULL); + bbSetOutputInteractorwxVtkBaseView_model2(NULL); + bbSetOutputInteractorwxVtkBaseView_model3(NULL); } //===== diff --git a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h index 448995b..d6efc37 100644 --- a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h +++ b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_Info.h @@ -10,9 +10,28 @@ #include "wxVtkBaseView.h" #include "vtkRenderer.h" +#include "InteractorStyleMaracas.h" + namespace bbcreaMaracasVisu { +class InteractorwxVtkBaseView; + + +class InteractorwxVtkBaseView_model : public InteractorStyleMaracas +{ +public: + InteractorwxVtkBaseView_model(); + ~InteractorwxVtkBaseView_model(); + void SetwxVtkBaseView( wxVtkBaseView *wxvtkbaseview); + void AddThisInteractor(); +protected: + wxVtkBaseView *_wxvtkbaseview; +}; + + + + class bbcreaMaracasVisu_EXPORT wxVtkBaseView_Info : public bbtk::AtomicBlackBox @@ -25,6 +44,7 @@ class bbcreaMaracasVisu_EXPORT wxVtkBaseView_Info BBTK_DECLARE_INPUT(wxVtkBaseView2,wxVtkBaseView*); BBTK_DECLARE_INPUT(wxVtkBaseView3,wxVtkBaseView*); BBTK_DECLARE_INPUT(InteractionType,int); + BBTK_DECLARE_OUTPUT(vtkRenderer,vtkRenderer*); BBTK_DECLARE_OUTPUT(Direction,int); BBTK_DECLARE_OUTPUT(Image,vtkImageData*); @@ -33,12 +53,23 @@ class bbcreaMaracasVisu_EXPORT wxVtkBaseView_Info BBTK_DECLARE_OUTPUT(Point,std::vector); BBTK_DECLARE_OUTPUT(PointMouse,std::vector); BBTK_DECLARE_OUTPUT(Normal,std::vector); - + BBTK_DECLARE_OUTPUT(InteractorwxVtkBaseView_model,InteractorwxVtkBaseView_model*); + BBTK_DECLARE_OUTPUT(InteractorwxVtkBaseView_model2,InteractorwxVtkBaseView_model*); + BBTK_DECLARE_OUTPUT(InteractorwxVtkBaseView_model3,InteractorwxVtkBaseView_model*); + BBTK_DECLARE_OUTPUT(Box_wxVtkBaseView_Info,wxVtkBaseView_Info*); + BBTK_DECLARE_OUTPUT(wxVtkBaseView,wxVtkBaseView*); + + + BBTK_PROCESS(Process); void Process(); bool firsttime; void SetwxVtkBaseViewOutputs(wxVtkBaseView *wxvtkbaseview ); - + + InteractorwxVtkBaseView *interactorwxvtkbaseview; + InteractorwxVtkBaseView *interactorwxvtkbaseview2; + InteractorwxVtkBaseView *interactorwxvtkbaseview3; + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== @@ -63,13 +94,18 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(wxVtkBaseView_Info,bbtk::AtomicBlackBox); BBTK_OUTPUT(wxVtkBaseView_Info,Point,"Axis positon of the viewer",std::vector,""); BBTK_OUTPUT(wxVtkBaseView_Info,PointMouse,"Actual Point Mouse",std::vector,""); BBTK_OUTPUT(wxVtkBaseView_Info,Normal,"Normal of plane viewe",std::vector,""); + BBTK_OUTPUT(wxVtkBaseView_Info,InteractorwxVtkBaseView_model,"Interactor wxVtkBaseView Model", InteractorwxVtkBaseView_model* ,""); + BBTK_OUTPUT(wxVtkBaseView_Info,InteractorwxVtkBaseView_model2,"Interactor wxVtkBaseView Model", InteractorwxVtkBaseView_model* ,""); + BBTK_OUTPUT(wxVtkBaseView_Info,InteractorwxVtkBaseView_model3,"Interactor wxVtkBaseView Model", InteractorwxVtkBaseView_model* ,""); + BBTK_OUTPUT(wxVtkBaseView_Info,Box_wxVtkBaseView_Info,"Box wxVtkBaseView_Info", wxVtkBaseView_Info* ,""); + BBTK_OUTPUT(wxVtkBaseView_Info,wxVtkBaseView,"wxVtkBaseView in use", wxVtkBaseView* ,""); + BBTK_END_DESCRIBE_BLACK_BOX(wxVtkBaseView_Info); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== -} -// EO namespace bbcreaMaracasVisu +} // EO namespace bbcreaMaracasVisu #endif // __bbcreaMaracasVisuwxVtkBaseView_Info_h_INCLUDED__ diff --git a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_info_tool.cxx b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_info_tool.cxx new file mode 100644 index 0000000..d990e6f --- /dev/null +++ b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_info_tool.cxx @@ -0,0 +1,110 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#include "bbcreaMaracasVisuwxVtkBaseView_info_tool.h" +#include "bbcreaMaracasVisuPackage.h" +namespace bbcreaMaracasVisu +{ + +BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,wxVtkBaseView_info_tool) +BBTK_BLACK_BOX_IMPLEMENTATION(wxVtkBaseView_info_tool,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void wxVtkBaseView_info_tool::Process() +{ + +// THE MAIN PROCESSING METHOD BODY +// Here we simply set the input 'In' value to the output 'Out' +// And print out the output value +// INPUT/OUTPUT ACCESSORS ARE OF THE FORM : +// void bbSet{Input|Output}NAME(const TYPE&) +// const TYPE& bbGet{Input|Output}NAME() const +// Where : +// * NAME is the name of the input/output +// (the one provided in the attribute 'name' of the tag 'input') +// * TYPE is the C++ type of the input/output +// (the one provided in the attribute 'type' of the tag 'input') + +// bbSetOutputOut( bbGetInputIn() ); +// std::cout << "Output value = " <SetwxVtkBaseViewOutputs( bbGetInputwxVtkBaseView() ); + bbGetInputBox_wxVtkBaseView_Info()->bbSignalOutputModification(); + } + } // if Type 0:nothing + + + if (bbGetInputType()==1) + { + printf("EED wxVtkBaseView_info_tool::Process type 1\n"); + if (firsttime==true) + { + firsttime=false; + if (bbGetInputInteractorwxVtkBaseView_model()!=NULL) + { + bbGetInputInteractorwxVtkBaseView_model()->SetwxVtkBaseView( bbGetInputwxVtkBaseView() ); + bbGetInputInteractorwxVtkBaseView_model()->AddThisInteractor(); + } // if + if (bbGetInputInteractorwxVtkBaseView_model2()!=NULL) + { + bbGetInputInteractorwxVtkBaseView_model2()->SetwxVtkBaseView( bbGetInputwxVtkBaseView2() ); + bbGetInputInteractorwxVtkBaseView_model2()->AddThisInteractor(); + } // if + if (bbGetInputInteractorwxVtkBaseView_model3()!=NULL) + { + bbGetInputInteractorwxVtkBaseView_model3()->SetwxVtkBaseView( bbGetInputwxVtkBaseView3() ); + bbGetInputInteractorwxVtkBaseView_model3()->AddThisInteractor(); + } // if + } // if firsttime + } // if Type 1:with mouse buttons + +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void wxVtkBaseView_info_tool::bbUserSetDefaultValues() +{ +// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX +// Here we initialize the input 'In' to 0 + firsttime=true; + bbSetInputType(0); + bbSetInputwxVtkBaseView(NULL); + bbSetInputwxVtkBaseView2(NULL); + bbSetInputwxVtkBaseView3(NULL); + bbSetInputBox_wxVtkBaseView_Info(NULL); +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void wxVtkBaseView_info_tool::bbUserInitializeProcessing() +{ +// THE INITIALIZATION METHOD BODY : +// Here does nothing +// but this is where you should allocate the internal/output pointers +// if any +} + +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +void wxVtkBaseView_info_tool::bbUserFinalizeProcessing() +{ +// THE FINALIZATION METHOD BODY : +// Here does nothing +// but this is where you should desallocate the internal/output pointers +// if any +} + +}// EO namespace bbcreaMaracasVisu + + diff --git a/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_info_tool.h b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_info_tool.h new file mode 100644 index 0000000..1a54b42 --- /dev/null +++ b/bbtk/src/bbcreaMaracasVisuwxVtkBaseView_info_tool.h @@ -0,0 +1,70 @@ +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +#ifndef __bbcreaMaracasVisuwxVtkBaseView_info_tool_h_INCLUDED__ +#define __bbcreaMaracasVisuwxVtkBaseView_info_tool_h_INCLUDED__ + +#include "bbcreaMaracasVisu_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +#include "bbcreaMaracasVisuwxVtkBaseView_Info.h" + +namespace bbcreaMaracasVisu +{ + +class bbcreaMaracasVisu_EXPORT wxVtkBaseView_info_tool + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(wxVtkBaseView_info_tool,bbtk::AtomicBlackBox); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== + BBTK_DECLARE_INPUT(Type,int); + BBTK_DECLARE_INPUT(wxVtkBaseView,wxVtkBaseView*); + BBTK_DECLARE_INPUT(wxVtkBaseView2,wxVtkBaseView*); + BBTK_DECLARE_INPUT(wxVtkBaseView3,wxVtkBaseView*); + BBTK_DECLARE_INPUT(Box_wxVtkBaseView_Info,wxVtkBaseView_Info*); + + BBTK_DECLARE_INPUT( InteractorwxVtkBaseView_model , InteractorwxVtkBaseView_model* ); + BBTK_DECLARE_INPUT( InteractorwxVtkBaseView_model2 , InteractorwxVtkBaseView_model* ); + BBTK_DECLARE_INPUT( InteractorwxVtkBaseView_model3 , InteractorwxVtkBaseView_model* ); + +// BBTK_DECLARE_OUTPUT(Out,double); + BBTK_PROCESS(Process); + void Process(); + + bool firsttime; +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +}; + +BBTK_BEGIN_DESCRIBE_BLACK_BOX(wxVtkBaseView_info_tool,bbtk::AtomicBlackBox); + BBTK_NAME("wxVtkBaseView_info_tool"); + BBTK_AUTHOR("InfoDev"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("empty"); + + BBTK_INPUT(wxVtkBaseView_info_tool,Type,"(default 0) 0: Nothing 1:With Mouse Buttons reaction",int,""); + BBTK_INPUT(wxVtkBaseView_info_tool,wxVtkBaseView,"wxVtkBaseView",wxVtkBaseView*,""); + BBTK_INPUT(wxVtkBaseView_info_tool,wxVtkBaseView2,"wxVtkBaseView",wxVtkBaseView*,""); + BBTK_INPUT(wxVtkBaseView_info_tool,wxVtkBaseView3,"wxVtkBaseView",wxVtkBaseView*,""); + BBTK_INPUT(wxVtkBaseView_info_tool,Box_wxVtkBaseView_Info,"Box wxVtkBaseView_Info",wxVtkBaseView_Info*,""); + + BBTK_INPUT(wxVtkBaseView_info_tool,InteractorwxVtkBaseView_model,"InteractorwxVtkBaseView_model",InteractorwxVtkBaseView_model*,""); + BBTK_INPUT(wxVtkBaseView_info_tool,InteractorwxVtkBaseView_model2,"InteractorwxVtkBaseView_model",InteractorwxVtkBaseView_model*,""); + BBTK_INPUT(wxVtkBaseView_info_tool,InteractorwxVtkBaseView_model3,"InteractorwxVtkBaseView_model",InteractorwxVtkBaseView_model*,""); + +// BBTK_OUTPUT(wxVtkBaseView_info_tool,Out,"First output",double,""); + +BBTK_END_DESCRIBE_BLACK_BOX(wxVtkBaseView_info_tool); +//===== +// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) +//===== +} +// EO namespace bbcreaMaracasVisu + +#endif // __bbcreaMaracasVisuwxVtkBaseView_info_tool_h_INCLUDED__ +