Making an invisible parameter visible again

Making an invisible parameter visible again

Post by charles.d. » Thu, 27 Apr 2006 04:17:27


his is a multi-part message in MIME format.



----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM

Hi folks,



If a parameter is added to a composite actor via right-click / Configure
/ Add, then it is only

visible via the same method.



I can Look Inside the composite and add more parameters via "blue dots".
When I am at the

top level again, these are visible in the Configure menu.



I'm wondering how to make the invisible parameters visible within the
interior view.



The attached model is a trivial example.



Thanks,



Chuck Lutz

Lockheed Martin

Systems of Systems - Modeling and Operations Analysis

BMC4I Modeling and Simulation

Moorestown, NJ

(856)638-7234 (office)

XXXX@XXXXX.COM



"Everyone spoke of an information overload, but what there

was in fact was a non-information overload."

- Richard Saul Wurman




<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi folks,</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>If a parameter is added to a composite actor via right-click
/ Configure / Add, then it is only</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>visible via the same method.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I can Look Inside the composite and add more parameters via “blue
dots”. When I am at the</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>top level again, these are visible in the Configure menu.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family
 
 
 

Making an invisible parameter visible again

Post by eal » Fri, 28 Apr 2006 00:07:25


If you select View-XML on the model, you will see what
it takes to make the parameter visible. In particular,
visibleParam looks like what's below. In theory, you
can add all these contained attributes to the invisible
parameter, but it's probably easier to just create a new
parameter from the menu. If you want to add contents,
you can just create text like this:

<property name="invisibleParam">
... contents like what's in visibleParam
</property>

and paste that into the composite actor...

Note that it wouldn't make sense to have a menu shortcut for this,
since there are many ways to make parameters visible (directors, for
example, are visible attributes with an entirely different visualization
and interaction mechanism).

Edward


<property name="visibleParam"
class="ptolemy.data.expr.Parameter" value="2.0">
<property name="_hideName"
class="ptolemy.kernel.util.SingletonAttribute">
</property>
<property name="_icon" class="ptolemy.vergil.icon.ValueIcon">
<property name="_color"
class="ptolemy.actor.gui.ColorAttribute" value="{0.0, 0.0, 1.0, 1.0}">
</property>
</property>
<property name="_smallIconDescription"
class="ptolemy.kernel.util.SingletonConfigurableAttribute">
<configure>
<svg>
<text x="20" style="font-size:14; font-family:SansSerif;
fill:blue" y="20">-P-</text>
</svg>
</configure>
</property>
<property name="_editorFactory"
class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory">
</property>
<property name="_location"
class="ptolemy.kernel.util.Location" value="{50, 40}">
</property>
<property name="style" class="ptolemy.actor.gui.style.LineStyle">
</property>
</property>


------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
XXXX@XXXXX.COM , http://www.yqcomputer.com/ ~eal


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM

 
 
 

Making an invisible parameter visible again

Post by cxh » Fri, 28 Apr 2006 00:19:39

Chuck writes:

I had forgotten about this method of adding parameters.
Yes, if you use this method, then the parameter does not have
a graphical representation inside the composite actor.
To fix this, you can edit the .xml file by hand and add
a _icon property. However, it is probably easiest to delete
the property and add a new property by dragging a Parameter
icon in from Utilities -> Parameters.

_Christopher

--------

Hi folks,



If a parameter is added to a composite actor via right-click / Configure
/ Add, then it is only

visible via the same method.



I can Look Inside the composite and add more parameters via "blue dots".
When I am at the

top level again, these are visible in the Configure menu.



I'm wondering how to make the invisible parameters visible within the
interior view.



The attached model is a trivial example.



Thanks,



Chuck Lutz

Lockheed Martin

Systems of Systems - Modeling and Operations Analysis

BMC4I Modeling and Simulation

Moorestown, NJ

(856)638-7234 (office)

XXXX@XXXXX.COM

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM