SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] SampleField


Chronological Thread 
  • From: Michael Callahan <callahan@sci.utah.edu>
  • To: Elisha Hughes <erh0509@westminstercollege.edu>
  • Cc: scirun-users@sci.utah.edu
  • Subject: Re: [SCIRUN-USERS] SampleField
  • Date: Sat, 09 Apr 2005 10:09:05 -0600

The module inherits from ProgressReporter.  You should only create a new
one if you want the error messages discarded for some reason.  I
recommend that if this is it's own algorithm you pass it in, and if it's
module code you use 'this'.

SampleFieldRandomAlgoT<typename FSP::mesh_type> algo;
FieldHandle rph = algo.execute(this, myfieldH, numpts,
                               (int)(100*drand48()), "uniuni", 0);

  Michael

On Sat, 2005-04-09 at 09:12 -0600, Elisha Hughes wrote: 
> Dear scirun-users,
> 
> I am currently calling the SampleField module from another module in order 
> to get a pointCloudField of random points. I'm using the following code:
> 
> ProgressReporter *pr = new ProgressReporter(); 
> FieldHandle rph=SampleFieldRandomAlgoT<typename 
> FSP::mesh_type>::execute(pr, myfieldH, numpts, (int)(100*drand48()), 
> "uniuni", 0);
> 
> This seems kind of strange - I don't really want a ProgressReporter. Is 
> there a better way to do this?
> 
> Thank you for your help,
> Elisha
> 
> ===========================================================================
> == The SCIRun Users mailing list: send email to majordomo@sci.utah.edu   ==
> == for more details.                                                     ==
> == Please acknowledge use of SCIRun in your papers and reports:          ==
> ==   see http://software.sci.utah.edu/scirun-biopse_citation.bib         ==
> ===========================================================================

===========================================================================
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu   ==
== for more details.                                                     ==
== Please acknowledge use of SCIRun in your papers and reports:          ==
==   see http://software.sci.utah.edu/scirun-biopse_citation.bib         ==
===========================================================================





Archive powered by MHonArc 2.6.16.

Top of page