[prev in list] [next in list] [prev in thread] [next in thread] 

List:       paraview
Subject:    Re: [Paraview] Insert text source into view in a script
From:       "Madalena S. Malhadas" <nenasantos () hotmail ! com>
Date:       2015-02-26 17:47:39
Message-ID: DUB109-W1394E4AC283EDE9BBDA1506DF140 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Ok. Thank you very much.
I have a scrip that read a nc file and plot the sediments cloud from a clarifier . \
The script already save each image from each instant of my nc file. Now i want to \
include in each slide the data. So, i want that the scrip associate and write the \
correc data text in each slide. How can include these  feature in my script? Can you \
help me? Kind regards
Madalena


From: kmorel@sandia.gov
To: nenasantos@hotmail.com; jeffrey.c.becker@nasa.gov; utkarsh.ayachit@kitware.com
CC: paraview@paraview.org
Subject: Re: [Paraview]  Insert text source into view in a script
Date: Thu, 26 Feb 2015 17:41:49 +0000










Try using the ParaView tracing feature (Tools -> Start Trace, Stop Trace) to learn \
script commands that mimic things you do in the GUI. Using ParaView 4.3.1, I started \
script tracing, created a text source, and stopped the tracing. I got the following  \
commands:






# create a new 'Text'
text1 = Text()


# Properties modified on text1
text1.Text = 'my paraview script'


# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [856, 589]


# show data in view
text1Display = Show(text1, renderView1)






-Ken





From: "Madalena S. Malhadas" <nenasantos@hotmail.com>

Date: Thursday, February 26, 2015 at 10:34 AM

To: Jeff Becker <jeffrey.c.becker@nasa.gov>, Utkarsh Ayachit \
<utkarsh.ayachit@kitware.com>

Cc: ParaView <paraview@paraview.org>

Subject: [EXTERNAL] [Paraview] Insert text source into view in a script







How i can include a text source, for example a title (e.g., "my paraview script") \
into a view in a paraview scrip?



Kind regards
Madalena



 		 	   		  


[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Ok. Thank you very much.<div><br></div><div>I \
have a scrip that read a nc file and plot the sediments cloud from a clarifier . The \
script already save each image from each instant of my nc file. Now i want to include \
in each slide the data. So, i want that the scrip associate and write the correc data \
text in each slide. How can include these &nbsp;feature in my script? Can you help \
me?</div><div><br></div><div>Kind \
regards</div><div><br></div><div>Madalena</div><div><br></div><div><br><br><div><hr \
id="stopSpelling">From: kmorel@sandia.gov<br>To: nenasantos@hotmail.com; \
jeffrey.c.becker@nasa.gov; utkarsh.ayachit@kitware.com<br>CC: \
paraview@paraview.org<br>Subject: Re: [Paraview]  Insert text source into view in a \
script<br>Date: Thu, 26 Feb 2015 17:41:49 +0000<br><br>



<style><!--
.ExternalClass p, .ExternalClass li {
white-space:pre-wrap;
}

--></style>


<div style="font-family:Calibri, sans-serif;">
<div>
<div>Try using the ParaView tracing feature (Tools -&gt; Start Trace, Stop Trace) to \
learn script commands that mimic things you do in the GUI. Using ParaView 4.3.1, I \
started script tracing, created a text source, and stopped the tracing. I got the \
following  commands:</div>
</div>
</div>
<div style="font-family:Calibri, sans-serif;"><br>
</div>
<div>
<p style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font \
face="Consolas"># create a new 'Text'</font></span></p> <pre style=""><font \
face="Consolas">text1 <span style="color:rgb(102, 102, 102);">=</span> \
Text()</font></pre> <pre style=""><font face="Consolas"><br></font></pre>
<pre style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font \
face="Consolas"># Properties modified on text1</font></span></pre> <pre \
style=""><font face="Consolas">text1<span style="color:rgb(102, 102, \
102);">.</span>Text <span style="color:rgb(102, 102, 102);">=</span> <span \
style="color:rgb(186, 33, 33);">'my paraview script'</span></font></pre> <pre \
style="color:rgb(186, 33, 33);"><font face="Consolas"><br></font></pre> <pre \
style=""><span style="font-style:italic;color:rgb(64, 128, 128);"><font \
face="Consolas"># get active view</font></span></pre> <pre style=""><font \
face="Consolas">renderView1 <span style="color:rgb(102, 102, 102);">=</span> \
GetActiveViewOrCreate(<span style="color:rgb(186, 33, \
33);">'RenderView'</span>)</font></pre> <pre style=""><span \
style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># uncomment \
following to set a specific view size</font></span></pre> <pre style=""><span \
style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># \
renderView1.ViewSize = [856, 589]</font></span></pre> <pre \
style="font-style:italic;color:rgb(64, 128, 128);"><font \
face="Consolas"><br></font></pre> <pre style=""><span \
style="font-style:italic;color:rgb(64, 128, 128);"><font face="Consolas"># show data \
in view</font></span></pre> <pre style=""><font face="Consolas">text1Display <span \
style="color:rgb(102, 102, 102);">=</span> Show(text1, renderView1)</font></pre> <pre \
style="font-family:'Courier New,courier';"><br></pre> </div>
<div style="font-family:Calibri, sans-serif;"><br>
</div>
<div style="font-family:Calibri, sans-serif;">-Ken</div>
<div style="font-family:Calibri, sans-serif;"><br>
</div>
<span id="ecxOLK_SRC_BODY_SECTION" style="font-family:Calibri, sans-serif;">
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium \
none;BORDER-LEFT:medium \
none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt \
solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt;"> <span \
style="font-weight:bold;">From: </span>"Madalena S. Malhadas" &lt;<a \
href="mailto:nenasantos@hotmail.com">nenasantos@hotmail.com</a>&gt;<br> <span \
style="font-weight:bold;">Date: </span>Thursday, February 26, 2015 at 10:34 AM<br> \
<span style="font-weight:bold;">To: </span>Jeff Becker &lt;<a \
href="mailto:jeffrey.c.becker@nasa.gov">jeffrey.c.becker@nasa.gov</a>&gt;, Utkarsh \
Ayachit &lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;<br>
 <span style="font-weight:bold;">Cc: </span>ParaView &lt;<a \
href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br> <span \
style="font-weight:bold;">Subject: </span>[EXTERNAL] [Paraview] Insert text source \
into view in a script<br> </div>
<div><br>
</div>
<div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div class="ecxhmmessage">
<div dir="ltr">How i can include a text source, for example a title (e.g., "my \
paraview script") into a view in a paraview scrip? <div><br>
</div>
<div>Kind regards</div>
<div>Madalena</div>
</div>
</div>
</div>
</span></div></div> 		 	   		  </div></body>
</html>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic