Add outline rendering.
This commit is contained in:
parent
f04d86e0ad
commit
a20c0183df
20 changed files with 291 additions and 64 deletions
|
@ -19,7 +19,6 @@ void ImageViewWidget::doPaint(const PaintEvent* event)
|
|||
|
||||
if (!mGridNode)
|
||||
{
|
||||
std::cout << "Setting up grid node" << std::endl;
|
||||
mGridNode = std::make_unique<GridNode>(mLocation);
|
||||
mGridNode->setName(mName + "_GridNode");
|
||||
mGridNode->setNumX(mNumX);
|
||||
|
@ -27,6 +26,21 @@ void ImageViewWidget::doPaint(const PaintEvent* event)
|
|||
|
||||
mGridNode->setWidth(mSize.mWidth);
|
||||
mGridNode->setHeight(mSize.mHeight);
|
||||
|
||||
mGridNode->setStrokeColor(mBorderColor);
|
||||
|
||||
mRootNode->addChild(mGridNode.get());
|
||||
}
|
||||
|
||||
if (mTransformDirty)
|
||||
{
|
||||
mGridNode->setLocation(mLocation);
|
||||
mGridNode->setWidth(mSize.mWidth);
|
||||
mGridNode->setHeight(mSize.mHeight);
|
||||
}
|
||||
|
||||
if (mMaterialDirty)
|
||||
{
|
||||
mGridNode->setFillColor(mBorderColor);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue