C
carl
I have a class which defines a private constructor and some private fields:
private:
NonRigidTransform(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
/** The bulk transform. */
BulkTransformPointer m_BulkTransform;
/** Variables defining the coefficient grid extend. */
RegionType m_GridRegion;
SpacingType m_GridSpacing;
DirectionType m_GridDirection;
OriginType m_GridOrigin;
DirectionType m_PointToIndex;
DirectionType m_IndexToPoint;
Now I made another class that extends the above class. But when I create the
subclass I get some errors saying that the above fields are private. I have
tried to change the above visibility to 'protected' and then it works. But
since I would like to write my subclass without making changes in the
baseclass I would like to know if its possible to change the visibility of
the above fields in my subclass. Any ideas?
private:
NonRigidTransform(const Self&); //purposely not implemented
void operator=(const Self&); //purposely not implemented
/** The bulk transform. */
BulkTransformPointer m_BulkTransform;
/** Variables defining the coefficient grid extend. */
RegionType m_GridRegion;
SpacingType m_GridSpacing;
DirectionType m_GridDirection;
OriginType m_GridOrigin;
DirectionType m_PointToIndex;
DirectionType m_IndexToPoint;
Now I made another class that extends the above class. But when I create the
subclass I get some errors saying that the above fields are private. I have
tried to change the above visibility to 'protected' and then it works. But
since I would like to write my subclass without making changes in the
baseclass I would like to know if its possible to change the visibility of
the above fields in my subclass. Any ideas?