<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [vtk-developers] PLY reader issues</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>That brings up an interesting point... vtkErrorMacro doesn't<BR>
use 'this' directly but rather calls vtkErrorWithObjectMacro.<BR>
Does Kitware advise/support the use of vtkErrorWithObjectMacro<BR>
directly? I ask because there are times when I'm writing a<BR>
static function where 'this' isn't defined but there is a<BR>
pointer to *some* vtkObject-derived class. Should I be calling<BR>
vtkGenericWarningMacro or vtkErrorWithObjectMacro in those<BR>
instances (pun intended)?<BR>
<BR>
    Thanks,<BR>
    David<BR>
<BR>
-----Original Message-----<BR>
From: Will Schroeder [<A HREF="mailto:will.schroeder@kitware.com">mailto:will.schroeder@kitware.com</A>]<BR>
Sent: Sat 11/17/2007 3:24 AM<BR>
To: Sean McBride<BR>
Cc: Thompson, David C; Vtk Developers<BR>
Subject: Re: [vtk-developers] PLY reader issues<BR>
<BR>
vtkGenericWarningMacro can be used, it's found in Common/vtkSetGet.h<BR>
<BR>
On 11/16/07, Sean McBride <sean@rogue-research.com> wrote:<BR>
><BR>
> On 11/16/07 9:31 PM, David C Thompson said:<BR>
><BR>
> >> vtkErrorMacro seems to require 'this' but everything in vtkPLY is<BR>
> static<BR>
> >> methods.  Is there a variant error macro I can use?  I didn't see<BR>
> one...<BR>
> ><BR>
> >vtkGenericWarningMacro doesn't require 'this' . It can't invoke an<BR>
> >ErrorEvent, so no one can use observers to watch for generic warnings,<BR>
> >but a message will be printed.<BR>
><BR>
> Works great, thanks!  Next week I'll check in some changes so that<BR>
> vtkPLY's error handling is, um, less bad. :)<BR>
><BR>
> --<BR>
> ____________________________________________________________<BR>
> Sean McBride, B. Eng                 sean@rogue-research.com<BR>
> Rogue Research                        www.rogue-research.com<BR>
> Mac Software Developer              Montréal, Québec, Canada<BR>
><BR>
> _______________________________________________<BR>
> vtk-developers mailing list<BR>
> vtk-developers@vtk.org<BR>
> <A HREF="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</A><BR>
><BR>
<BR>
<BR>
<BR>
--<BR>
William J. Schroeder, PhD<BR>
Kitware, Inc.<BR>
28 Corporate Drive<BR>
Clifton Park, NY 12065<BR>
will.schroeder@kitware.com<BR>
<A HREF="http://www.kitware.com">http://www.kitware.com</A><BR>
518-371-3971 (phone and fax)<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>