Skip to content

Commit

Permalink
ENH: Add Python wrapping of DrawQuadricImageFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Nov 12, 2022
1 parent cbebbad commit 10429e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/rtkDrawQuadricImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ template <class TInputImage, class TOutputImage>
void
DrawQuadricImageFilter<TInputImage, TOutputImage>::BeforeThreadedGenerateData()
{
if (this->GetConvexObject() == nullptr)
this->SetConvexObject(QuadricShape::New().GetPointer());
if (this->GetConvexShape() == nullptr)
this->SetConvexShape(QuadricShape::New().GetPointer());

Superclass::BeforeThreadedGenerateData();

QuadricShape * qo = dynamic_cast<QuadricShape *>(this->GetConvexObject());
auto * qo = dynamic_cast<QuadricShape *>(this->GetModifiableConvexShape());
if (qo == nullptr)
{
itkExceptionMacro("This is not a QuadricShape!");
Expand Down
3 changes: 3 additions & 0 deletions wrapping/rtkDrawQuadricImageFilter.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
itk_wrap_class("rtk::DrawQuadricImageFilter" POINTER)
itk_wrap_image_filter("${WRAP_ITK_REAL}" 2 3)
itk_end_wrap_class()

0 comments on commit 10429e5

Please sign in to comment.